}
_this.grid.colModel.setHidden(1,name_hidden);
+ _this.grid.footer.onClick('first');
}
},
+ closable : false,
height : 400,
+ modal : true,
title : "Pulldown Options",
width : 950,
items : [
if (operation != Roo.data.Record.COMMIT) {
return;
}
+
+ var name = record.data.name;
+ if (typeof(_this.data._hide_name) != 'undefined') {
+ name = record.data.display_name;
+ }
// got commit..
new Pman.Request({
url : baseURL + '/Roo/Core_enum.php',
{
xtype: 'Button',
xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ var sel = _this.grid.selModel.getSelectedCell();
+ if (!sel) {
+ Roo.MesssageBox.alert("Error", "Select an item");
+ return;
+ }
+ var rec = _this.grid.getAt(sel[0]);
+ if (_this.callback) {
+ _this.callback(rec.data);
+ }
+ _this.dialog.hide();
+ }
+ },
text : "OK"
}
]