1. #1
    Sencha User thejoker101's Avatar
    Join Date
    Mar 2007
    Posts
    349
    Vote Rating
    0
    thejoker101 is on a distinguished road

      0  

    Question How To Hide Some Values In Dropdown For Simple Combo Box?

    How To Hide Some Values In Dropdown For Simple Combo Box?


    This seems easy, but I'm not figuring it out...

    I have a SimpleComboBox that I load with some values from an Arrays.asList(). That's all fine.

    In my application, I sometimes don't want to show all the values of the dropdown as they are sometimes not applicable to what's going on. What's the correct way to do this?

    I don't want to remove them because then I'd have to add them back later on. There doesn't seem to be a simple way to just hide a value in the dropdown of the combo. I was thinking I could filter the value out of the store and then clear the filter when I want it back in. Thoughts? Examples?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Nov 2010
    Posts
    209
    Vote Rating
    -2
    Ersmarker has a little shameless behaviour in the past

      0  

    Default


    If you use a ComboBox instead of a SimpleComboBox you can use a store and filters.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Quote Originally Posted by Ersmarker View Post
    If you use a ComboBox instead of a SimpleComboBox you can use a store and filters.
    Filters work on a SimpleComboBox too.

Similar Threads

  1. [Stable 1.0] LovCombo - Simple List of Values Combo
    By jsakalos in forum Ext 3.x: User Extensions and Plugins
    Replies: 626
    Last Post: 15 Aug 2013, 12:05 PM
  2. Combo box doesn't show dropdown values
    By rbraddy in forum Ext 3.x: Help & Discussion
    Replies: 17
    Last Post: 5 Nov 2009, 10:42 AM
  3. Removing values from child dropdown
    By dee_rocks in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 12 Sep 2007, 1:59 PM
  4. simple dropdown menu without using Button
    By c-909 in forum Community Discussion
    Replies: 2
    Last Post: 1 May 2007, 1:13 AM

Thread Participants: 2