【发布时间】:2013-10-03 15:46:11
【问题描述】:
我正在尝试向网格中删除/添加行。
假设删除,我创建了一个这样的操作列:
{
xtype: 'actioncolumn',
width: 30,
sortable: false,
menuDisabled: true,
items: [{
icon: 'images/delete.png',
scope: this,
handler: this.onRemoveClick
}]
}
还有处理程序:
onRemoveClick: function(grid, rowIndex){
this.getStore().removeAt(rowIndex);
}
但由于某种原因,我得到了错误:
"Uncaught TypeError: Object [object Object] has no method 'getStore'"
我从here 复制了代码,但它似乎对我不起作用。
【问题讨论】:
标签: extjs