Hi,
While trying to set more than 3 values in BoxSelect,its not showing anything I am sending you with a simple example.
Code:
var basicBoxselect = Ext.create('Ext.ux.form.field.BoxSelect', {
fieldLabel: 'Select multiple states',
renderTo: 'basicBoxselect',
displayField: 'name',
width: 500,
labelWidth: 130,
store: statesStore,
queryMode: 'local',
emptyText: 'Pick a state, any state',
valueField: 'abbr',
value: 'WA, TX,SD,TN'
});
but the code is working fine for
Code:
var basicBoxselect = Ext.create('Ext.ux.form.field.BoxSelect', {
fieldLabel: 'Select multiple states',
renderTo: 'basicBoxselect',
displayField: 'name',
width: 500,
labelWidth: 130,
store: statesStore,
queryMode: 'local',
emptyText: 'Pick a state, any state',
valueField: 'abbr',
value: 'WA, TX'
});
Please tell me how to setValue for the BoxSelect for multiple items.I given something like this
Code:
basicBoxselect.setValue('IMDG,BC,BHH,JJJ');
its not working...if i will set values for 2 items,it will work...