xtype: 'ComboBox',
xns: Roo.bootstrap,
placeholder : 'Select a country',
- displayField : 'name',
+ displayField : 'title',
hiddenName : 'country_id',
md : '12',
size : 'sm',
name : 'country_id_name',
triggerAction : 'all',
minChars : '1',
- tpl : '<li class="roo-select2-result"><b>{name}</b></div>',
+ tpl : '<li class="roo-select2-result"><b>{title}</b></div>',
style : 'margin-top:20px;',
listeners : {
render : function (_self) {
xtype: 'ComboBox',
xns: Roo.bootstrap,
placeholder : 'Select a country',
- displayField : 'name',
+ displayField : 'title',
hiddenName : 'country_id',
md : '12',
size : 'sm',
name : 'country_id_name',
triggerAction : 'all',
minChars : '1',
- tpl : '<li class="roo-select2-result"><b>{name}</b></div>',
+ tpl : '<li class="roo-select2-result"><b>{title}</b></div>',
style : 'margin-top:20px;',
multiple: true,
listeners : {
}
},
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'name' },
+ remoteSort : false,
+ sortInfo : { direction : 'ASC', field: 'title' },
proxy : {
xtype: 'HttpProxy',
xns: Roo.data,
- url : baseURL + '/Geoip/Core_geoip_country',
+ url : './data.country.js',
method : 'GET'
},
reader : {
'type': 'string'
},
{
- 'name': 'name',
+ 'name': 'title',
'type': 'string'
}
]