Permalink
Browse files

fix: 如果为booleanRender并且没有设置editType则设置此列为不可修改

  • Loading branch information...
1 parent e0c11d3 commit e3562222ab67d2eb1ce080672a1e0286df2bf937 liuyk committed Nov 9, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/component/keroa-grid.js
@@ -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

0 comments on commit e356222

Please sign in to comment.