Results 1 to 5 of 5

Thread: Filter local store before its combobox is triggered

  1. #1
    Sencha User
    Join Date
    Dec 2008
    Posts
    92
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: Filter local store before its combobox is triggered

    Hi, I have two comboboxes configured with stores (data and queryMode local). A select listener on the first box is set to filter the second store.

    What happens: The second store is not filtered unless I click the dropdown trigger on the second box first. I don't have to select anything in the second box, just expand the dropdownlist, and then select something in the first box to make it work.

    I want to filter the second store without the need to click the second box trigger first. The store-is-not-loaded-yet problem is not present as this is a local store.

    Thoughts?

  2. This is a pretty common problem. Unless you know where to look it's not easy to find the solution either:

    http://docs.sencha.com/ext-js/4-0/#!...erty-lastQuery

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585
    Vote Rating
    394
      0  

    Default

    This is a pretty common problem. Unless you know where to look it's not easy to find the solution either:

    http://docs.sencha.com/ext-js/4-0/#!...erty-lastQuery

  4. #3
    Sencha User
    Join Date
    Dec 2008
    Posts
    92
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Works. Thanks a lot.

  5. #4
    Sencha User mono blaine's Avatar
    Join Date
    Jul 2008
    Location
    Turkey
    Posts
    123
    Answers
    1
    Vote Rating
    8
      0  

    Default

    Quote Originally Posted by skirtle View Post
    This is a pretty common problem. Unless you know where to look it's not easy to find the solution either:

    http://docs.sencha.com/ext-js/4-0/#!...erty-lastQuery
    This is like kicking a vending machine to grab something, and hysterically repeating to yourself the phrase "this is not a bug this is a feature".

    Anyway, no words can express what I feel right now. this piece of sh*t cost me my whole day.

  6. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    20
    Answers
    4
    Vote Rating
    0
      0  

    Default

    Thank you skirtle for the solution. This helped me achieve not hitting the server repeatedly...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •