PDA

View Full Version : EXT ComboBox - Items List options



Geovision
Nov 27, 2020, 12:55 PM
Dear,


Suppose I have an EXT Combo Box within the following items:

a- item 1
b- item 2
c- item 3

user can select item 1 and item 3 but item 2 cannot be selected and used for read only and not write.
is their an EXT combo option as per described in the above example?

Regards,

fabricio.murta
Nov 27, 2020, 2:09 PM
Hello @geovision!

There is not out-of-the-box, but you can tamper with the combo box' select event and change the selection if it does not "fancy" you depending on the store bound to the combo box.

You could add a field allowSelection to the combo store's data (model), and then whenever a select event triggers, you jump in and check whether the list of selected records fit your criteria, removing the ones that don't and keeping the others -- and even adding others in.

So, the feature is not native, but the possibility is there. Will just take some tinkering in the logic selection event is subject to.

Hope this helps!