{
_this.multiple = this;
- },
- changed : function (_self, state)
- {
- Roo.log('chnaged???');
- Roo.log(_this.multipleSel.inputEl().getWidth());
- if(state){
- _this.multipleSel.list.setWidth(Math.max(_this.multipleSel.inputEl().getWidth(), _this.multipleSel.minListWidth));
- }
- }
+ }
}
},
{
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="select2-result"><b>{name}</b></div>',
+ tpl : '<li class="roo-select2-result"><b>{title}</b></div>',
style : 'margin-top:20px;',
listeners : {
render : function (_self) {
}
},
remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'name' },
+ 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'
}
]
xns : Roo.bootstrap,
navId : '#top',
active : false,
+ listeners : {
+ changed : function (_self, state)
+ {
+ if(state){
+ _this.multipleSel.list.setWidth(Math.max(_this.multipleSel.inputEl().getWidth(), _this.multipleSel.minListWidth));
+ }
+ }
+ },
items : [
{
level : 4,
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="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'
}
]
xns : Roo.bootstrap,
navId : '#top',
active : false,
+ listeners : {
+ changed : function (_self, state)
+ {
+ if(state){
+ _this.tickableSel.list.setWidth(Math.max(_this.tickableSel.inputEl().getWidth(), _this.tickableSel.minListWidth));
+ }
+ }
+ },
items : [
{
level : 4,
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="select2-result"><b>{name}</b></div>',
+ // tpl : '<li class="roo-select2-result"><b>{name}</b></div>',
style : 'margin-top:20px;',
multiple: true,
tickable: true,
}
},
- 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'
}
]