Jan 18, 2012, 9:05 PM
[CLOSED] Combobox expands after the store reload
We have:
- a GridPanel with the PageProxy defined,
- a BufferView with headers (operator, filter)
Talking about combobox filter.
User picks a filter value (let's say Status='X'), combo collapses and custom 'applyFilter' function triggers which RELOADS the main GridPanel's store (GridPanel1.store.reload()), which subsequently loads the filter combobox's store again.
The probllem is that load triggers combobox to expand, so in the end we have a combo expanded and a main data filtered.
Although I can't explain what forced it to expand, I made some digging and found this stuff:
The problem I have sounds like this one:
http://www.sencha.com/forum/showthre...r-store-reload
, although I don't see 'hasFocus' among the properties just like you did not in:
http://www.sencha.com/forum/showthre...r-store-reload
Not quite sure how, but it looks like this worked for them!? :
Appreciate any help,
Thx.
- a GridPanel with the PageProxy defined,
- a BufferView with headers (operator, filter)
Talking about combobox filter.
User picks a filter value (let's say Status='X'), combo collapses and custom 'applyFilter' function triggers which RELOADS the main GridPanel's store (GridPanel1.store.reload()), which subsequently loads the filter combobox's store again.
The probllem is that load triggers combobox to expand, so in the end we have a combo expanded and a main data filtered.
Although I can't explain what forced it to expand, I made some digging and found this stuff:
The problem I have sounds like this one:
http://www.sencha.com/forum/showthre...r-store-reload
, although I don't see 'hasFocus' among the properties just like you did not in:
http://www.sencha.com/forum/showthre...r-store-reload
Not quite sure how, but it looks like this worked for them!? :
var hasFocus = combo.hasFocus;
combo.hasFocus = null;
combo.store.load({
callback: function(){
if(combo.hasFocus === null){
combo.hasFocus = hasFocus;
}
}
});
Anyway is there an Ext.Net way to set up store load CALLBACK function - not a HANDLER or maybe a HANDLER with an delay should be that? Appreciate any help,
Thx.
Last edited by Daniil; Jan 27, 2012 at 5:10 PM.
Reason: [CLOSED]