Unanswered: Problem between combobox and store
sorry if I'm not on right section and for the english..
I have a problem with store and dynamic combobox.
My situation is particular so I'll try to explane only one simple example that should reproduce the problem...
I have a combobox with store linked to it. Near that I build a button needed to reload
a store with random different data . All these component are created together at the start of the page.
So you have a select box and the button reload a store that need to populate that combo.
At the first time I click a button, the store is loaded without any problems and the combo is
populated. But if i close the combo and I click again on the button, when I try to reopen the combo,
the "Login.." appear and nothing change..
It doesn't try to make any call (i checked with firebug).
It' only put the wait message. In this situation (mean with open combo), if i try to realod the data, all will be right.
The data have been loaded correctly because i see them, but the loading messages avoid me to click them.
It seems that the combo doesn't know that it has only to display the message without search anything..
If you close the combo and update the store, the combo has no knowledge of the change.
You will need to tell the combo to load the store again.
Yes, exactly, but i don't know how do it...
Have you an idea???
Have a look at combo.lastQuery
I read docs about that and I found the best way to do it should be declaring a beforequery listeners with
delete queryEvent.combo.lastQuery inside it.
I have tried with queryEvent.combo.lastQuery = null; and with delete queryEvent.combo.lastQuery;
But both doesn't work.
The loading still there
Tags for this Thread