0

The Extjs Itemselector component has methods like getValue, getSubmitData, getSubmitValue which will return the keys of the records that are selected.

I am looking for a better way than taking the keys of the records selected from the component and fetching for the record from the store by searching the store in a sequential fashion. This is a very time expensive solution which is not working well for me since the itemselector has a large number of records.

Question : is there a way to retrieve the displayed string/value (in the selected part of the itemselector) along with the keys directly from the component and not as above ?

thanks Nohsib

Nohsib
  • 3,614
  • 14
  • 51
  • 63

1 Answers1

0

This works in my code to get an array of all the records which you can then get the values from, it may not work in yours if you have a different version of Extjs:

itemSelectorField.toField.store.getRange();

Oh and if you want the display values as a string list:

itemSelectorField.toField.store.getRange().collect("display_value_propery_name").join(",");
Reimius
  • 5,694
  • 5
  • 24
  • 42