どうすればそれを機能させることができますか?
確認のためにポップアップ付きの列アクションのように、グリッドに削除アイコンを配置したい。x 項目を削除しますか?
このようなものを作ったが、うまくいかない
{
xtype: 'actioncolumn',
width: 50,
items: [
{
icon: 'delete.gif', // Use a URL in the icon config
tooltip: 'Delete Product',
handler: function (grid, rowIndex, colIndex) {
var rec = store.getAt(rowIndex);
var id = rec.get('ID');
Ext.MessageBox.show({
title: 'Save Changes?',
msg: 'Do you want to delete ' + rec.get('Name') + ' ?',
buttons: Ext.MessageBox.OKCANCEL,
fn: showResult
});
}
}
]
}