[CLOSED] [1.0] Grid Store Refresh Event behavior overriding

  1. #1

    [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!!


  2. #2

    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
    <BeforeLoad Handler="options.params.newParam = 'value';" />

Similar Threads

  1. [CLOSED] Javascript after the Grid's Refresh event is done
    By dheeraj_us in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Dec 14, 2011, 4:23 AM
  2. Replies: 20
    Last Post: Nov 24, 2010, 12:39 PM
  3. [CLOSED] Refresh store after AfterRecordUpdated event
    By methode in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 23, 2010, 4:25 PM
  4. Trigger store refresh event
    By dan182 in forum 1.x Help
    Replies: 4
    Last Post: Jun 23, 2010, 2:09 PM
  5. Replies: 0
    Last Post: Oct 27, 2009, 9:46 AM

Posting Permissions