PDA

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



rbtceo
Oct 14, 2015, 7: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, 2: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 14, 2015, 11:18 PM
Thank you, Daniil.

It is all good. I made a mistype.