listeners : {
click : function()
{
- var s = [];
- s.push(_this.grid.selModel.selection.record.id);
-
- if (s.length * 1 < 1) {
+
+ var s = _this.grid.getSelectionModel().getSelectedCell();
+
+ if (!s.length) {
Roo.MessageBox.alert("Error", "Select a Row");
return;
}
- var select_index = _this.grid.selModel.selection.record.selected;
- console.log(_this.grid.ds);
- var d = _this.grid.ds.data(s[select_index]);
-
+ var d = _this.grid.ds.getAt(s[0]);
+ console.log(Pman.Dialog);
Pman.Dialog.AdminEnumMerge.show(d.data, function() {
_this.grid.footer.onClick('refresh');
});