View Full Version : Wait to load a grid until the store is loaded

25 Jun 2010, 2:21 PM
Hi guys,

I'm building an aplication that shows a grid with several data load from store, the problem is that load the store take a time an shows an error that says aborted.

How can i do to make the load wont be aborted....and the grid wait to fill the data until the store is loaded??'


25 Jun 2010, 3:01 PM
Is the load taking > 30 seconds?

25 Jun 2010, 11:33 PM
yes, because the json service needs to execute a function that search a kind of hardware....and I cant reduce that time

25 Jun 2010, 11:42 PM
Create your HttpProxy passing an instance of Ext.data.Connection which has been configured with a timeout option.

25 Jun 2010, 11:56 PM
Or set it globally:

Ext.Ajax.timeout = 120000; //2 minutes

26 Jun 2010, 12:16 AM
ok... that will solve one of my problems ...but how can I make the grid wait to the store load the data??

26 Jun 2010, 12:49 AM
Not sure I understand what you mean, the grid won't show any data until your store has finished loading. It'll then be automatically refreshed when the store is done loading.

26 Jun 2010, 1:05 AM
Listen to the "load" event on the store. Once that's done, you know the store is loaded, so you can create the grid.

26 Jun 2010, 1:22 AM
thanks you very much guys I'll try all you told me ...

26 Jun 2010, 2:17 AM
The grid doesn't have to wait. It will update itself as soon as data becomes available.