Hi,
Currently I have a treeview control and a grid control.
I added a onSelect javascript, when treeview is selected, the grid control will be re-bind.
but I don't know how to pass the parameter to Grid control.
function onSelect(e)
{
var grid = $("#Grid").data("kendoGrid");
grid.dataSource.read()
}
.Read(read => read.Action("GetGridData","Home"))
public ActionResult GetGridData(string treeviewItem, [DataSourceRequest]DataSourceRequest request)
{
}
Can you advise how should I pass the parameter to Grid so the grid can call to controller to return data?
Currently I have a treeview control and a grid control.
I added a onSelect javascript, when treeview is selected, the grid control will be re-bind.
but I don't know how to pass the parameter to Grid control.
function onSelect(e)
{
var grid = $("#Grid").data("kendoGrid");
grid.dataSource.read()
}
.Read(read => read.Action("GetGridData","Home"))
public ActionResult GetGridData(string treeviewItem, [DataSourceRequest]DataSourceRequest request)
{
}
Can you advise how should I pass the parameter to Grid so the grid can call to controller to return data?