Noob_NoVoice
Noob_NoVoice

Reputation: 217

How to get selected value from Itemselector

I have a Item Selector, which has 2 sections, Avaliable Column and Selected Column.

I want to fetch all values from selected column and store it in a List.

How to do that ?

items : [{
                    // first column
                    xtype : 'itemselector',
                    columnWidth: 0.5,
                    store: showFieldStore,
                    id: 'fieldSelector',
                    displayField: 'columnLabel',
                    valueField: 'dataIndex',
                    allowBlank: false,
                    msgTarget: 'side',
                    fromTitle: 'Available Columns',
                    toTitle: 'Selected Columns'
                }

Upvotes: 0

Views: 983

Answers (1)

Ferrakkem Bhuiyan
Ferrakkem Bhuiyan

Reputation: 2783

you want to display values as a string list or from display fields :

itemSelectorField.toField.store.getRange().collect("display_value_propery_name").join(",");

Upvotes: 3

Related Questions