【发布时间】:2014-02-18 00:35:50
【问题描述】:
在 Ext.grid.Panel 中,当用户更改复选框的状态时,我需要保存代表该行的模型。
我有这段代码(很简单,因为这个组件很大):
Ext.define('Hts.Appointments.List.Grid', {
extend : 'Ext.grid.Panel',
initComponent : function() {
this.store = /* Big initialization code for store */
this.columns = [{
header: Hts.Localization.APPOINTMENTS.HIGHLIGHT,
dataIndex: 'highlighted',
xtype: 'checkcolumn',
flex: 1,
listeners: {
checkchange: function(column,rowIndex,checked) {
/* Here I need to access the model and save it */
}
},
/* other columns */
]
}
})
我希望我提供了足够的信息(我是 ExtJs 的新手)。
【问题讨论】:
标签: javascript extjs