resources/Editors/Editor.Roo.LayoutDialog.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 24 Apr 2015 08:40:01 +0000 (16:40 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 24 Apr 2015 08:40:01 +0000 (16:40 +0800)
resources/Editors/Editor.Roo.LayoutDialog.js

resources/Editors/Editor.Roo.LayoutDialog.bjs
resources/Editors/Editor.Roo.LayoutDialog.js

index 51b1ed2..1aeae52 100644 (file)
@@ -13,7 +13,8 @@
   "c671c787b49f50a3ace9fdc5bd597825" : "core_enum",
   "32954654ac8fe66a1d09be19001de2d4" : "Width",
   "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
-  "6e7376dca68a2386a8737944196ab491" : "Create / Edit Grid"
+  "6e7376dca68a2386a8737944196ab491" : "Create / Edit Grid",
+  "7fc56270e7a70fa81a5935b72eacbe29" : "A"
  },
  "items" : [
   {
         {
          "xtype" : "GridEditor",
          "$ xns" : "Roo.grid",
-         "* prop" : "editor"
+         "* prop" : "editor",
+         "items" : [
+          {
+           "listeners" : {
+            "render" : "function (_self)\n{\n  _this.status = _self;\n}",
+            "select" : "function (combo, record, index)\n{\n    _this.grid.ds.load({});\n}"
+           },
+           "listWidth" : 200,
+           "triggerAction" : "all",
+           "fieldLabel" : "Status",
+           "displayField" : "fname",
+           "hiddenName" : "status",
+           "value" : "A",
+           "valueField" : "ftype",
+           "xtype" : "ComboBox",
+           "allowBlank" : false,
+           "editable" : false,
+           "width" : 150,
+           "$ xns" : "Roo.form",
+           "mode" : "local",
+           "name" : "status",
+           "items" : [
+            {
+             "xtype" : "SimpleStore",
+             "$ data" : "[ \n    [ 'O', \"Open\"],\n    [ 'C' , \"Closed\"],\n    [ 'A', \"All\"] \n]\n",
+             "$ fields" : "[  'ftype', 'fname']",
+             "$ xns" : "Roo.data",
+             "* prop" : "store"
+            }
+           ]
+          }
+         ]
         }
        ]
       },
index 4065003..9165357 100644 (file)
@@ -14,7 +14,8 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({
   'c671c787b49f50a3ace9fdc5bd597825' :"core_enum",
   '32954654ac8fe66a1d09be19001de2d4' :"Width",
   'a1fa27779242b4902f7ae3bdd5c6d508' :"Type",
-  '6e7376dca68a2386a8737944196ab491' :"Create / Edit Grid"
+  '6e7376dca68a2386a8737944196ab491' :"Create / Edit Grid",
+  '7fc56270e7a70fa81a5935b72eacbe29' :"A"
  },
 
   part     :  ["Editors", "LayoutDialog" ],
@@ -126,7 +127,52 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({
        editor : {
         '|xns' : 'Roo.grid',
         xns : Roo.grid,
-        xtype : 'GridEditor'
+        xtype : 'GridEditor',
+        items : [
+         {
+          store : {
+           '|xns' : 'Roo.data',
+           data : [ 
+               [ 'O', "Open"],
+               [ 'C' , "Closed"],
+               [ 'A', "All"] 
+           ],
+           fields : [  'ftype', 'fname'],
+           xns : Roo.data,
+           xtype : 'SimpleStore'
+          },
+          '|xns' : 'Roo.form',
+          allowBlank : false,
+          displayField : 'fname',
+          editable : false,
+          fieldLabel : 'Status',
+          hiddenName : 'status',
+          listWidth : 200,
+          mode : 'local',
+          name : 'status',
+          triggerAction : 'all',
+          value : _this._strings['7fc56270e7a70fa81a5935b72eacbe29'],
+          valueField : 'ftype',
+          width : 150,
+          xns : Roo.form,
+          xtype : 'ComboBox',
+          listeners : {
+           render : function (_self)
+            {
+              _this.status = _self;
+            },
+           select : function (combo, record, index)
+            {
+                _this.grid.ds.load({});
+            }
+          },
+          items : [
+
+          ]
+
+         }
+        ]
+
        },
        '|xns' : 'Roo.grid',
        dataIndex : 'title',