【发布时间】:2016-05-17 11:46:18
【问题描述】:
我的复选框列:
{
xtype: 'widgetcolumn',
text: 'Selection',
tdCls: 'actions',
header: 'Selection',
width: '5%',
dataIndex: 'selection',
widget: {
xtype: 'checkbox',
defaultBindProperty: 'disabled',
listeners: {
afterrender: function (chb) {
var rec = chb.getWidgetRecord();
chb.setValue(rec.get('selection'));
chb.on('change', this.checkHandler);
chb.setDisabled(rec.get('selection_disabled'));
},
scope: this
}
}
}
如何在 cellclick 网格事件中以编程方式获取设置值的复选框?在 cellclick 中,我需要更改复选框的值(cbox.setValue(!cbox.getValue()); 或相同)。
【问题讨论】:
标签: extjs