Skip to content

Commit

Permalink
fix: 如果为booleanRender并且没有设置editType则设置此列为不可修改
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyk committed Nov 9, 2016
1 parent e0c11d3 commit e356222
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/component/keroa-grid.js
Expand Up @@ -247,6 +247,10 @@ var GridAdapter = BaseAdapter.extend({
afterRType.call(this,obj);
}
}
// 如果是booleanRender并且没有设置eType则设置eType为空方法
if (!column.eType && !column.editable) {
column.editable = false;
}
}else if(rType == 'integerRender'){
column.renderType = function(obj){
var grid = obj.gridObj
Expand Down

0 comments on commit e356222

Please sign in to comment.