EXT ComboBox - Items List options

  1. #1

    EXT ComboBox - Items List options


    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?

  2. #2
    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!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 4
    Last Post: Jul 15, 2014, 10:59 AM
  2. Replies: 0
    Last Post: Jun 08, 2012, 11:49 AM
  3. Combobox loses its list of items
    By PeterParsonage in forum 1.x Help
    Replies: 1
    Last Post: Feb 10, 2011, 10:46 PM
  4. Combobox List Items Class
    By Tbaseflug in forum 1.x Help
    Replies: 6
    Last Post: Dec 10, 2010, 7:26 AM
  5. Replies: 5
    Last Post: Dec 18, 2009, 9:50 AM

Posting Permissions