},
{
"listeners": {
- "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
+ "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n // _this.grid.footer.onClick('first');\n }\n}"
},
"background": false,
"fitContainer": true,
"items": [
{
"listeners": {
- "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
+ "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n // this.footer.onClick('first');\n }\n}",
"afteredit": "function (e)\n{\n e.record.commit(); \n}",
"cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}",
"beforeedit": "function (e)\n{\n if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n return false;\n }\n}"
"displayInfo": true,
"displayMsg": "Displaying core_enum{0} - {1} of {2}",
"emptyMsg": "No core_enum found",
- "|xns": "Roo",
- "items": [
- {
- "listeners": {
- "click": "function (_self, e)\n{\n new Pman.Download({\n grid : _this.grid\n });\n Roo.MessageBox.alert(\"Downloading\", \"File is downloading\");\n}"
- },
- "text": "Download",
- "xtype": "Button",
- "|xns": "Roo.Toolbar"
- }
- ]
+ "|xns": "Roo"
},
{
"*prop": "toolbar",
]
}
]
+ },
+ {
+ "*prop": "buttons[]",
+ "text": "OK",
+ "xtype": "Button",
+ "|xns": "Roo"
}
]
}