PDA

View Full Version : Combo loading store on selection.



javabee
14 Dec 2010, 3:07 AM
Hi all, i've got a combo reading from a store configured to autoLoad. I can see the load event fire and return results etc in firebug but when i click on the combo, the component forces another load before population. Looking through the api i thought i'd found the solution in lazyRender or lazyInit but neither does the trick.
I'm basically loading a combo from db and initialising it to a specific value after the load event. I then attach a select event to call a function each time the combo value is changed. The problem i have is that the 'load' event is firing twice... once when the store loads and another when the combo is clicked

Thanks in advance!

javabee
14 Dec 2010, 3:40 AM
ahh sorry, misread the api and the use of 'local' vs 'remote' mode.... the latter which is designed to load on 'click' :)