[CLOSED] [1.0] Grid Store Refresh Event behavior overriding
hi,
I want to invoke some code before OnRefreshEvent of store refresh [blue icon] button that appear in the bottom of the grid when paging being active. by default when that button clicked the method store.reload() is called but i want to call a code before that because I'm loading the gridStore with autoload parameter "Foreign key" but when the grid refreshed through the refresh button it doesn't maintain any custom autoload param.!!!! why only "start, limit, dir, sort" are maintained by default??
the question is very clear so please don't ask me about a code sample!!
RE: [CLOSED] [1.0] Grid Store Refresh Event behavior overriding
Hi,
auto load params (AutoLoadParams) are applied for first auto load request. Next load requests use parameters from BaseParams collection and parameters are passed manually
You can define required params in the BaseParams or use BeforeLoad event of the store
Code:
<BeforeLoad Handler="options.params.newParam = 'value';" />