Ext.grid.Panel的selectionchange监听事件取消选择时不触发
用的是extjs5.1,创建Panel
var SystemdataInfoGridPanel_panel = Ext.create('Ext.grid.Panel', {
id: "Id",
border: false,
stateful: true,
autoScroll: true,
columnLines: true,
layout: "fit",
stripeRows: true,
forceFit: true,
selType: 'checkboxmodel',
multiSelect: true,
viewConfig: {
emptyText: "<div class='con_div_' id='div_dataactiveid'><" +无数据 + "></div>",
forceFit: true
},
bbar: bbar,
store: store,
columns: Columns,
listeners: {
selectionchange: function (sm, selections) {
///
},
itemdblclick: function () {
////
}
}
});
只有当选中行前面的复选框时才触发selectionchange事件,取消选择时不触发。有大神遇到过吗?没什么分了