PDA

View Full Version : Multiple Selection in Combo Box



Anup Rana
31 May 2011, 6:26 AM
<code>
xtype : 'combo',
fieldLabel : '<font color=#15428B><b>Profit(Loss)</font>
displayField : 'glname',
valueField : 'glid',
//disabled:true,
forceSelection : true,
editable : false,
store :GlElements,
typeAhead : false,
lazyInit : false,
triggerAction : 'all',
multiSelect: true,
delimiter: ', ',
</code>

Hi ..... i want to use multiple selection in combo box and i hv used the property multiSelect:true but still i m not able to multi select the values .......can u give sm idea wat is missing in my code !!!

friend
31 May 2011, 6:46 AM
Someone please correct me if I'm wrong, but I don't think Ext.form.ComboBox supports the notion of multi-select. I don't see a multiSelect config option in the API docs and the Field -> TextField -> TriggerField chain of inheritance for a ComboBox also implies that multi-select isn't supported.

fay
31 May 2011, 7:10 AM
multiSelect is a DataView config option, and a combo's view is defined with singleSelect: true. Take a look at the LovCombo (http://www.sencha.com/forum/showthread.php?32692-Stable-1.0-LovCombo-Simple-List-of-Values-Combo&highlight=multiselect) or SuperBoxSelect (http://www.sencha.com/forum/showthread.php?69307-3.x-Ext.ux.form.SuperBoxSelect) components.