this.dialog = Roo.factory({
xtype: 'LayoutDialog',
xns: Roo,
+ listeners : {
+ show : function (_self)
+ {
+ var name_hidden = false;
+
+ if (typeof(_this.data._hide_name) != 'undefined') {
+ name_hidden = true;
+
+ }
+
+ _this.grid.colModel.setHidden(1,name_hidden);
+ }
+ },
height : 400,
title : "Pulldown Options",
width : 950,
listeners : {
beforeload : function (_self, options)
{
- if (!_this.etypeCombo) {
- return false;
- }
- options.params.etype = _this.etypeCombo.getValue();
+
+ options.params.etype = _this.data.etype;
if (!options.params.etype.length) {
return false;
}
method : 'POST',
params : {
id : record.data.id,
- etype : _this.etypeCombo.getValue(),
+ etype : _this.data.etype,
name : record.data.name,
active : record.data.active,
seqid : record.data.seqid,
{
// if we do not have a selected type... - what should we show..?
- var et = _this.etypeCombo.getValue();
+ var et = _this.data.etype;
var ds = _this.grid.getDataSource();
if (!et) {
Roo.MessageBox.alert("Error", "Select a pulldown");
xns: Roo
},
buttons : [
+ {
+ xtype: 'Button',
+ xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.dialog.hide();
+ }
+ },
+ text : "Cancel"
+ },
{
xtype: 'Button',
xns: Roo,