DataObjects/Core_watch.php
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.bjs
index e5eddc1..2319560 100644 (file)
                                     "*prop": "colModel[]",
                                     "dataIndex": "method_id",
                                     "header": "Type",
-                                    "width": 75,
+                                    "width": 120,
                                     "xtype": "ColumnModel",
                                     "|renderer": "function(v,x,r) {\n     return String.format('{0}', r.data.method_id_display_name); \n}",
                                     "|xns": "Roo.grid",
                                                     "*prop": "field",
                                                     "allowBlank": "false",
                                                     "displayField": "display_name",
+                                                    "editable": false,
                                                     "emptyText": "Select Type",
                                                     "fieldLabel": "core_enum",
                                                     "forceSelection": true,
                                                     "hiddenName": "method_id",
                                                     "listWidth": 400,
                                                     "loadingText": "Searching...",
-                                                    "minChars": 2,
                                                     "name": "method_id_display_name",
                                                     "pageSize": 20,
                                                     "qtip": "Select core_enum",
                                                     "selectOnFocus": true,
-                                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
+                                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
                                                     "triggerAction": "all",
                                                     "typeAhead": true,
                                                     "valueField": "id",
                                                     "|xns": "Roo.form",
                                                     "items": [
                                                         {
+                                                            "listeners": {
+                                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype = 'core_notify_recur';\n}\n"
+                                                            },
                                                             "*prop": "store",
-                                                            "xtype": "Store",
-                                                            "|xns": "Roo.data",
                                                             "remoteSort": true,
+                                                            "xtype": "Store",
                                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
-                                                            "listeners": {
-                                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
-                                                            },
+                                                            "|xns": "Roo.data",
                                                             "items": [
                                                                 {
                                                                     "*prop": "proxy",