[CLOSED] [1.0]Add store custom params at runtime

  1. #1

    [CLOSED] [1.0]Add store custom params at runtime

    Hello,

    How can I add a custom param to store at runtime?

    Thanks
    Last edited by Daniil; Nov 01, 2010 at 7:06 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Do you mean via javascript or in the code behind?
  3. #3
    Hi,

    sorry, In code behind.
  4. #4
    Hi,

    If you need to add new params during ajax request then it is not supported. If it is initial page load then use
    store.BaseParams.Add(new Ext.Net.Parameter("name", "value"));
    I can suggest to listen BeforeLoad event of store and add required params which were not added initialy
    <BeforeLoad Handler="options.params.myParam1 = 'value1';"/>
    or pass parameter to load/reload method in javascript
    store.reload({params:{myParam1:'value1'}});

Similar Threads

  1. [CLOSED] Store SubmitData Extra Params not working
    By alexkay in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 12, 2010, 7:21 PM
  2. [CLOSED] Using a update proxy on a store with params?
    By Riset in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 02, 2009, 12:21 PM
  3. Renderer with link - load params for store
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Aug 14, 2009, 12:51 PM
  4. Modify store load params clientside
    By jchau in forum 1.x Help
    Replies: 14
    Last Post: Aug 10, 2009, 10:41 AM
  5. Update Store With Params
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Dec 31, 2008, 11:01 AM

Posting Permissions