Results 1 to 2 of 2

Thread: Combobox store reload when combo field is cleared

  1. #1
    Sencha User
    Join Date
    Aug 2014
    Posts
    10

    Default Combobox store reload when combo field is cleared

    I have a combobox that loads data from a store and it is editable. I have set minChars as 1

    1. When I enter any data into the combo field, the data in the dropdown gets filtered accordingly.
    2. When I delete each letter of the data entered in the combo field using backspace, eachtime a query is sent, and filtering takes place accordingly.
    3. But when the last letter in the combofield is deleted, the combo dropdown still displays the last filtered options.

    Am I missing something or is there anything that I can do for the drop down to display all data from store without any filter when the combo field is completely cleared instead of re-clicking on the dropdown button

    If there are any other threads in this forum with this solution kindly redirect me there since I have been trying to search the forum for a very long time.

    Thanks in Advance

  2. #2
    Sencha User
    Join Date
    Aug 2014
    Posts
    10

    Default

    My problem was "forceAll" variable from query was changing to false.
    So I have used the following workaround

    Code:
    beforequery: function(qe){
      if(qe.query==''){
        qe.forceAll=true;
      }
    }
    Kindly let me know if there are any other solutions available

Posting Permissions

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