more than 1 parameter in the query

Hi,

I'm able to send a single query parameter.

            <ejs-grid id="DataFieldsGrid" load="onLoad" allowPaging="true" allowSorting="true"
                      allowFiltering="true"
                      toolbar="@(new List<string>() {"Add", "Edit", "Delete", "Search" })"
                      query="new ej.data.Query().addParams('SomeId', '@Model.SomeId')">

How could I send more than 1 parameter?

1 Reply

TS Thiyagu Subramani Syncfusion Team May 11, 2020 07:27 AM UTC

Hi John, 

Thanks for contacting Syncfusion support. 

To send more than one parameter using addParams please refer the below code example 

<ejs-grid id="Grid" query="new ej.data.Query().addParams('ej2grid', 'true').addParams('ej2grid2', 'true')"> 
        . . . . .  
    </ejs-grid> 

Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S. 


Loader.
Up arrow icon