_this.grid.footer.onClick('first');
}
},
+ closable : false,
height : 400,
+ modal : true,
+ resizable : false,
title : "Pulldown Options",
width : 950,
items : [
params : {
id : record.data.id,
etype : _this.data.etype,
- name : record.data.name,
+ name : name,
active : record.data.active,
seqid : record.data.seqid,
display_name : record.data.display_name
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.ds.getAt(sel[0]);
_this.callback(rec.data);
}
_this.dialog.hide();