Hi John,
Thanks for using Syncfusion products
We have analyzed your query and we suspect that you want to add parameter in ClientSide event while rendering a Grid. Client Side events will have own parameters which cannot be modified. So you cannot add parameter like you asked. Refer the below link for client side events and it predefined parameters
Please explain your query with more details so that we can help you better
Regards,Vignesh Natarajan
Hello, as I wrote here, I have a problem with the data source, and I wanted to call the function when creating the grid and pass a couple of parameters, eg ID and type
|
[GridFeatures.cshtml]
@(Html.EJ().Grid<OrdersView>("FlatGrid")
.Datasource(ds => ds.URL("/Grid/DataSource").Adaptor(AdaptorType.UrlAdaptor))
.Query("ej.Query().addParams('valtype','number').addParams('id',10251)")
.EnableAltRow()
----
.Columns(col =>
{
----
})
)
--------------------------------------------------------------------
[GridController.cs]
public ActionResult DataSource(DataManager dm, int? id, string valtype)
{
IEnumerable DataSource = new NorthwindDataContext().OrdersViews.ToList();
----
}
|