PDA

View Full Version : [CLOSED] store load first page with parameters



rbtceo
Oct 14, 2015, 8:28 AM
Hi All,

Is it possible to load first store page on reload?

Something like that:


#{myGrid}.getStore().loadPage(1, {
params: {
site: item.storeItem.data['myParam']
}
});


Thank you.

Daniil
Oct 14, 2015, 3:35 PM
Hi @rbtceo,

Sorry, the requirement is a little unclear to me.

It looks like the loadPage method supports passing a load options.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Store-method-loadPage

I would expect your code working, but I guess it doesn't work for you. Could you, please, provide a test case?

rbtceo
Oct 15, 2015, 12:18 AM
Thank you, Daniil.

It is all good. I made a mistype.