PHP Code:
var statesStore = Ext.create('Ext.data.Store', {
model: 'State',
storeId: 'States',
data: states,
sorters: [{
property: 'name'
, transform: function(val) {
return val.toLowerCase();
}
}]
});
I have a sorter. The Dropdown is also sorted. But when you select one and it is added to the selected values this is not sorted the value field is not sorted automaticly
PHP Code:
{
xtype:'boxselect',
"fieldLabel": "Select multiple states",
"displayField": "name",
"width": 500,
"labelWidth": 130,
"store": "States",
"queryMode": "local",
"valueField": "abbr",
"value": "TX, WA, AL",
"stacked": true,
"pinList": false,
"growMax": 150,
"triggerOnClick": false,
"filterPickList": true
}