Pman.Dialog.CoreNotifyRecur.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 09:08:28 +0000 (17:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 09:08:28 +0000 (17:08 +0800)
Pman.Dialog.CoreNotifyRecur.js

Pman.Dialog.CoreNotifyRecur.bjs
Pman.Dialog.CoreNotifyRecur.js

index 1175b2d..a50b325 100644 (file)
                                     "width": 100,
                                     "xtype": "ColumnModel",
                                     "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
+                                    "|xns": "Roo.grid",
+                                    "items": [
+                                        {
+                                            "|xns": "Roo.grid",
+                                            "xtype": "GridEditor",
+                                            "*prop": "editor",
+                                            "items": [
+                                                {
+                                                    "*prop": "field",
+                                                    "allowBlank": false,
+                                                    "displayField": "title",
+                                                    "editable": false,
+                                                    "fieldLabel": "Country",
+                                                    "hiddenName": "freq",
+                                                    "listWidth": 200,
+                                                    "mode": "local",
+                                                    "name": "freq_name",
+                                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
+                                                    "triggerAction": "all",
+                                                    "valueField": "code",
+                                                    "width": 200,
+                                                    "xtype": "ComboBox",
+                                                    "|xns": "Roo.form",
+                                                    "items": [
+                                                        {
+                                                            "*prop": "store",
+                                                            "xtype": "SimpleStore",
+                                                            "|data": "[ \n    [ 'HOURLY' , 'Hourly at' ] ,\n       [ 'DAILY' , 'Daily at'] ,\n        [ 'WEEKLY' , 'Weekly at'] ,\n         [ 'Montly' , 'Montly at'] \n]",
+                                                            "|fields": "['code', 'title']",
+                                                            "|sortInfo": "{ field : 'title', direction: 'ASC' }",
+                                                            "|xns": "Roo.data"
+                                                        }
+                                                    ]
+                                                }
+                                            ]
+                                        }
+                                    ]
                                 },
                                 {
                                     "xtype": "ColumnModel",
index 33cd6ab..7ac487f 100644 (file)
@@ -420,7 +420,39 @@ Pman.Dialog.CoreNotifyRecur = {
                                 dataIndex : 'tz',
                                 header : 'Timezone',
                                 width : 100,
-                                renderer : function(v) { return String.format('{0}', v); }
+                                renderer : function(v) { return String.format('{0}', v); },
+                                editor : {
+                                    xtype: 'GridEditor',
+                                    xns: Roo.grid,
+                                    field : {
+                                        xtype: 'ComboBox',
+                                        xns: Roo.form,
+                                        allowBlank : false,
+                                        displayField : 'title',
+                                        editable : false,
+                                        fieldLabel : 'Country',
+                                        hiddenName : 'freq',
+                                        listWidth : 200,
+                                        mode : 'local',
+                                        name : 'freq_name',
+                                        tpl : '<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',
+                                        triggerAction : 'all',
+                                        valueField : 'code',
+                                        width : 200,
+                                        store : {
+                                            xtype: 'SimpleStore',
+                                            xns: Roo.data,
+                                            data : [ 
+                                                [ 'HOURLY' , 'Hourly at' ] ,
+                                                   [ 'DAILY' , 'Daily at'] ,
+                                                    [ 'WEEKLY' , 'Weekly at'] ,
+                                                     [ 'Montly' , 'Montly at'] 
+                                            ],
+                                            fields : ['code', 'title'],
+                                            sortInfo : { field : 'title', direction: 'ASC' }
+                                        }
+                                    }
+                                }
                             },
                             {
                                 xtype: 'ColumnModel',