Ext.grid.Panel的selectionchange监听事件取消选择时不触发 20
用的是extjs5.1,创建PanelvarmyPanel=Ext.create('Ext.grid.Panel',{id:"Id",border:false,state...
用的是extjs5.1,创建Panel
var myPanel = 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事件,取消选择时不触发。有大神遇到过吗? 展开
var myPanel = 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事件,取消选择时不触发。有大神遇到过吗? 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏20(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询