2 "name" : "Editor.Roo.grid.Grid",
5 "path" : "/home/alan/gitlive/app.Builder.js/resources/Editors/Editor.Roo.grid.Grid.bjs",
9 "4ce58cbe362a5d7b156992a496d55bf3" : "Database Column",
10 "b78a3223503896721cca1303f776159b" : "Title",
11 "2f616612593df62aeed112de4f03110e" : "Edit a Grid",
12 "0ccc2bf3fb98387c23b6ca5500244d6e" : "Use ",
13 "c671c787b49f50a3ace9fdc5bd597825" : "core_enum",
14 "32954654ac8fe66a1d09be19001de2d4" : "Width",
15 "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
16 "6e7376dca68a2386a8737944196ab491" : "Create / Edit Grid"
21 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
23 "| function loadData" : "function(data) { \n\n alert(\"IPC:TEST:\" + JSON.stringify(data,null,4));\n var ar = [];\n for (var k in data) { \n var r = data[k];\n ar.push([ false, r.Field, r.Type, r.Field, 100] );\n }\n \n alert(\"IPC:TEST:\" + JSON.stringify(ar));\n this.grid.dataSource.loadData(ar);\n}",
27 "title" : "core_enum",
28 "xtype" : "GridPanel",
30 "fitContainer" : true,
31 "String title" : "Create / Edit Grid",
32 "tableName" : "core_enum",
36 "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 * 1 ? 0 : 1);\n rec.commit();\n \n \n}",
37 "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n\n}"
39 "Number clicksToEdit" : 1,
40 "autoExpandColumn" : "title",
41 "xtype" : "EditorGrid",
47 "$ Array fields" : "[ 'active', 'dataIndex', 'type','title', 'width' ]",
48 "$ Array data" : "[\n [ 1, 'test', 'test', 110 ]\n \n\n]",
49 "Number id" : "'dataIndex'",
50 "xtype" : "SimpleStore",
60 "string text" : "Edit a Grid",
62 "$ xns" : "Roo.Toolbar"
67 "xtype" : "ColumnModel",
70 "$ renderer" : "function(v) { \n var state = v *1 > 0 ? '-checked' : '';\n\n return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n \n }",
73 "dataIndex" : "active"
76 "xtype" : "ColumnModel",
77 "header" : "Database Column",
79 "$ renderer" : "function(v) { return String.format('{0}', v); }",
82 "dataIndex" : "dataIndex"
85 "xtype" : "ColumnModel",
88 "$ renderer" : "function(v) { return String.format('{0}', v); }",
94 "xtype" : "ColumnModel",
97 "$ renderer" : "function(v) { return String.format('{0}', v); }",
100 "dataIndex" : "title",
103 "xtype" : "GridEditor",
104 "$ xns" : "Roo.grid",
108 "xtype" : "TextField",
109 "$ xns" : "Roo.form",
117 "xtype" : "ColumnModel",
120 "$ renderer" : "function(v) { return String.format('{0}', v); }",
121 "$ xns" : "Roo.grid",
123 "dataIndex" : "width",
126 "xtype" : "GridEditor",
127 "$ xns" : "Roo.grid",
131 "xtype" : "NumberField",
132 "Number decimalPrecision" : 0,
133 "$ xns" : "Roo.form",