Creting Multiselect Combo without using Transform.

  • Dear All,
    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


  • Thanks Condor,
    a great mistake I were with.
    Thanks Alot to trace it and make it working fine now..
    Cheers
    AmitOlsys


  • You are missing multiSelect:true in the Ext.ux.Andrie.Select config.


  • What do you define as being a 'multiselect ComboBox'?

    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).


  • Yes I used Ext.ux.Andrie.Select user Extension to create multiselect Combo

    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.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Creting Multiselect Combo without using Transform. , Please add it free.

    17 March 2010 | cameltoepants.com | edit