Hi,
I use the following code to reload my grid every 15 seconds.
Whereas this works, sometimes the loading takes more than 15 seconds.
In such cases I want to wait until the load is done, wait another 15 seconds and then do a reload.
How can I get that?
Code:
Ext.TaskMgr.start({
    run: function (in_campaign_id, in_start_date, in_end_date) {
        if (FreeEntryDataStore.getTotalCount() == 0)
           //Load the first time          
           FreeEntryDataStore.load({
            params: {
                campaign_id: in_campaign_id,
                start_date: in_start_date,
                end_date: in_end_date,
                start: 0,
                limit: 50
            }
        });
        //Reload subsequently
        else FreeEntryDataStore.reload();
    },
    interval: 1000 * 15
});