PDA

View Full Version : Combobox store reload when combo field is cleared



prtheei
3 Sep 2014, 12:56 AM
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

prtheei
3 Sep 2014, 4:46 AM
My problem was "forceAll" variable from query was changing to false.
So I have used the following workaround



beforequery: function(qe){
if(qe.query==''){
qe.forceAll=true;
}
}

Kindly let me know if there are any other solutions available