Creting Multiselect Combo without using Transform.
Can I create a multiselect ComboBox where ComboBox data is populated from xml Data.
Means without using Transform I wanted to create a multiselect ComboBox where the data in multiselectComboBox is populated from an external Xml File.
Thanks
AMitOlsys
a great mistake I were with.
Thanks Alot to trace it and make it working fine now..
Cheers
AmitOlsys
In a standard Ext.form.ComboBox you can only select a single item from the list, not multiple (but there are user extensions for that).
new Ext.ux.Andrie.Select({
id:'MultiSel',
typeAhead: true,
triggerAction: 'all',
transform:'Values',
lazyRender:true,
listClass: 'x-combo-list-small'
})
and in html I used
then In that case Multiselect Combo Box is successfully created.
But when I am going to fill the combobox values with an external xml file data.then Its multiselect property is not working.The code i used to fill from xml data is as below
new Ext.ux.Select({
id:'MultiSel',
store:storeValues,
valueField:'Val',
displayField:'Val',
typeAhead: true,
mode:'local',
triggerAction: 'all',
listClass: 'x-combo-list-small'
})
and storeValues is as below
var storeValues = new Ext.data.Store({
// load using HTTP
url: 'Files/IndexClassValues.xml',
autoLoad:true,
reader: new Ext.data.XmlReader({
record: 'State'
}, [
{name: 'Val'}
])
});
and no select IS USED IN HTML.
pLEASE LET ME KNOW HOW CAN i MAKE IT WORKING WHILE data is being populated from an xml file.
Cheers!
AmitOlsys
#If you have any other info about this subject , Please add it free.# |