"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",
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',