简体   繁体   中英

Extjs Access grid's store params

Is there anyway to access a grid's store params within the ExtJS code?

I have only been able to access them is in a REST call.

They are loaded using:

monthStore.load({params: {id:id, month: month}});

Had this 'month' been in the extraParams, then you could have accessed it the following way:

storeVar.proxy.extraParams.month

Where storeVar is the instance of your grid store.

But to access the params, I shall suggest you to put it up in some global variable, or may be in the same scope where the renderer is so that this variable can be accessed.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM