【发布时间】:2014-01-09 04:10:04
【问题描述】:
我正在开发一个 EXTJS 应用程序,我在 EXTJS 网格中显示数据。
每一行都有一个编辑按钮。请检查图像。
我想点击编辑链接,会打开一个包含所有可编辑字段的弹出窗口,我可以从那里编辑行。
请帮助我实现这一目标。
这是我的代码。
{
xtype:'actioncolumn',
width:50,
items: [{
icon: 'assets/images/edit.png', // Use a URL in the icon config
tooltip: 'Edit',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Edit " + rec.get('ID'));
}
}
}
谢谢
【问题讨论】: