[CLOSED] pass mutiple paramer with single extraparams

  1. #1

    [CLOSED] pass mutiple paramer with single extraparams

    Hi
    Currently I pass parametars and values
    de.Select.ExtraParams.Add(new  { containerId = "container", DepartmentID = "App.cmbDepartment.getValue()", PaygroupID = "App.PaygroupID.getValue()", Employeecode = "App.txtEmployeecode.getValue()" })
    but I not able so set parameter mode in it.How to set parameter mode in it?

    or if I follow bellow style ,then how I assign all parameter and values with it.
    de.Select.ExtraParams.Add(new Parameter
                                                {
                                                    
                                                });
    Last edited by Daniil; Dec 04, 2014 at 8:43 AM. Reason: [CLOSED]
  2. #2
    Hi @matrixwebtech,

    Please use a JRawValue
    de.Select.ExtraParams.Add(new  
    { 
        containerId = "container",
        DepartmentID = new JRawValue("App.cmbDepartment.getValue()") 
    });
    or
    this.Button1.DirectEvents.Click.ExtraParams.Add(new Ext.Net.Parameter("containerId", "container", ParameterMode.Value));
    this.Button1.DirectEvents.Click.ExtraParams.Add(new Ext.Net.Parameter("DepartmentID", "App.cmbDepartment.getValue()", ParameterMode.Raw));
  3. #3
    Hi daniil ,
    Your solution works.one more thing I want to know.new JRawValue("some value") and ParameterMode.Raw are same?
  4. #4
    I would say these things are different, but its destinations are the same - serialize a value without quotes.

Similar Threads

  1. Replies: 2
    Last Post: Mar 08, 2013, 5:00 PM
  2. [CLOSED] How to pass extraparams tp directmethod?
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 19, 2012, 5:00 PM
  3. Replies: 6
    Last Post: Aug 01, 2011, 4:53 PM
  4. Replies: 0
    Last Post: Apr 20, 2011, 6:01 AM
  5. Mutiple listeners
    By vali1993 in forum 1.x Help
    Replies: 0
    Last Post: Mar 16, 2010, 12:17 PM

Posting Permissions