PDA

View Full Version : One Grid two Stores



sakkarai
9 Feb 2015, 11:59 PM
Hi everyone,
I have one Question ,
I used to have one Grid where i get the Data from two stores one for images and one for Data,
as expected the data store is faster than the image ( ajax request ) is there someway option to set the data Store or the grid to wait for the images ?





Excuse me for my worse english

cpsarathe
10 Feb 2015, 9:59 PM
I think a fiddle projecting your problem can help you get answer faster.

Following solution may work -

Ext.Ajax.request({
async : false,
url : 'call/to/image',
method : 'GET',
success: function(response, opts) {
//you have array of images here in response
//now load data from here
grid.getStore().load();
}
});