PDA

View Full Version : Store Loading Issue



UGA_Zimma
20 Nov 2009, 1:01 PM
I am having an issue with AJAX calls to load a store. I have 5 grids that filter 1 grid based on selections. The five grids auto select records on load. The problem is the first call to load the store is the longest and overwrites the others once it returns.

Is there a way to check if a store has a pending load and kill it? e.g.



listeners:{
beforeload:{
fn:function(){
Check if store is already being loaded (Kill or wait)
}
}
}


Thanks for any help,

UGA_Zimma

Mike Robinson
23 Nov 2009, 8:32 AM
What you should do, I think, is to listen to the event that fires after loading.

Disable the user-interface controls altogether until the load event is fired by the store. Only then do you know that you've got some records. Only then does it make sense to allow the records to be "filtered."