ExtJS 动态设置Grid列是否可编辑
Ext JS Library 2.2.1
正确:
var cm = Ext.getCmp(‘Grid').getColumnModel();cm.setEditor(cm.findColumnIndex('TestColumn'), new Ext.grid.GridEditor(new Ext.form.NumberField({ allowBlank : false, cls : 'required', vtype:'precision', minValue: 0, maxValue: 999999999.999})));
错误:
var cm = Ext.getCmp(‘Grid').getColumnModel();cm.setEditor(cm.findColumnIndex('TestColumn'), new Ext.form.NumberField({ allowBlank : false, cls : 'required', vtype:'precision', minValue: 0, maxValue: 999999999.999}));
不能按单元格设置Editor?
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。