resources/Editors/Editor.Roo.grid.Grid.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 17 Apr 2015 09:08:24 +0000 (17:08 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 17 Apr 2015 09:08:24 +0000 (17:08 +0800)
resources/Editors/Editor.Roo.grid.Grid.js

resources/Editors/Editor.Roo.grid.Grid.bjs
resources/Editors/Editor.Roo.grid.Grid.js

index 3d12f0a..c200fe2 100644 (file)
@@ -21,6 +21,7 @@
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
    },
    "| 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        var has_s = typeof(r.relates_to_schema) != 'undefined'\n        ar.push([ !has_s , r.Field, r.Type,  r.Field, 100] );\n        if (!has_s) {\n            continue;\n        }\n        for (var kk in r.relates_to_schema) {         \n            var rr = r.relates_to_schema[kk];\n            if (rr.Field == r.relates_to_col) {\n                continue;\n            }\n            ar.push([ false, r.Field + '_'+ rr.Field, rr.Type,  rr.Field, 100] );\n        }\n    }\n    \n    alert(\"IPC:TEST:\" + JSON.stringify(ar));\n    this.grid.dataSource.loadData(ar);\n}",
+   "| function XXXX" : "function() { }",
    "fitToframe" : true,
    "background" : false,
    "region" : "center",
index fdf7f63..58c228d 100644 (file)
@@ -217,6 +217,7 @@ Editor.Roo.grid.Grid = new Roo.XComponent({
    title : _this._strings['c671c787b49f50a3ace9fdc5bd597825'],
    xns : Roo,
    xtype : 'GridPanel',
+   XXXX : function() { },
    listeners : {
     activate : function() {
          _this.panel = this;