EXTJS getSelectionModel().getSelections();对象不支持此属性或方法
vargrid=newExt.grid.GridPanel({renderTo:Ext.getBody(),store:store,selModel:{injectChe...
vargrid = new Ext.grid.GridPanel({
renderTo: Ext.getBody(),
store: store,
selModel: {injectCheckbox: 0, mode:"SINGLE", checkOnly: true},
selType: "checkboxmodel",
columns: [
{ text: '登录名',width: 200,dataIndex: 'LoginName', editor: 'textfield' },
],
tbar: [ {
xtype: "button",text: "删除", iconCls: "Delete",
handler: function (btnDel) {
var data = grid.getSelectionModel().getSelections();//错误出现在这
/*省略功能*/
} } }],});//我的版本是4.2以上 展开
renderTo: Ext.getBody(),
store: store,
selModel: {injectCheckbox: 0, mode:"SINGLE", checkOnly: true},
selType: "checkboxmodel",
columns: [
{ text: '登录名',width: 200,dataIndex: 'LoginName', editor: 'textfield' },
],
tbar: [ {
xtype: "button",text: "删除", iconCls: "Delete",
handler: function (btnDel) {
var data = grid.getSelectionModel().getSelections();//错误出现在这
/*省略功能*/
} } }],});//我的版本是4.2以上 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询