_this.grid.footer.onClick('first');
}
},
+ closable : false,
height : 400,
+ modal : true,
+ resizable : false,
title : "Pulldown Options",
width : 950,
items : [
click : function (_self, e)
{
var sel = _this.grid.selModel.getSelectedCell();
- if (!sel) {
- Roo.MesssageBox.alert("Error", "Select an item");
+ if (!sel && _this.callback) {
+ Roo.MessageBox.alert("Error", "Select an item");
return;
}
- var rec = _this.grid.getAt(sel[0]);
+
+
if (_this.callback) {
+ var rec = _this.grid.getAt(sel[0]);
_this.callback(rec.data);
}
+ _this.dialog.hide();
}
},
text : "OK"