multiple parameters

  1. #1

    multiple parameters

    Hello
    A newbie question, but i can't find solution from mvc examples. I want to pass some arguments to controller from view to fill a store as follow:

    .Parameters(ps => ps.Add(new StoreParameter("param1","a",ParameterMode.Value)))
    My question is how to pass another parameter, says "param2" and value "b".
    Thank you
  2. #2
    you can write as
    .Parameters(ps => {
       ps.Add(new StoreParameter("param1","a",ParameterMode.Value));
       ps.Add(new StoreParameter("param2","b")); // you can bypass ParameterMode param, if you use as ParameterMode.Value  
    })
    or if you use value mode you can write as

    .Parameters(ps => new {param1= "a", param2= "b"})
  3. #3
    thx, working great

Similar Threads

  1. Replies: 2
    Last Post: Nov 07, 2013, 1:03 PM
  2. Replies: 6
    Last Post: Sep 24, 2013, 6:55 AM
  3. Multiple Clicking on tree shows multiple items
    By yash.kapoor in forum 2.x Help
    Replies: 1
    Last Post: Oct 16, 2012, 7:44 AM
  4. [CLOSED] Multiple Editors - Multiple Instances?
    By jwf in forum 1.x Premium Help
    Replies: 5
    Last Post: Jun 09, 2011, 5:45 PM
  5. [CLOSED] DirectEvent Parameters (Multiple)
    By Timothy in forum 1.x Premium Help
    Replies: 2
    Last Post: Sep 09, 2010, 8:38 PM

Posting Permissions