I am trying to add a data parameter to a grid read:
.Read(read => read.Action("NotesRead", "Server").Data(ViewBag.ServerId))
I have the controller as:
public ActionResult NotesRead([DataSourceRequest]DataSourceRequest request, string ServerId)
it is throwing the following error:
The call is ambiguous between the following methods or properties: 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(System.Func<object,object>)' and 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(string)'
.Read(read => read.Action("NotesRead", "Server").Data(ViewBag.ServerId))
I have the controller as:
public ActionResult NotesRead([DataSourceRequest]DataSourceRequest request, string ServerId)
it is throwing the following error:
The call is ambiguous between the following methods or properties: 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(System.Func<object,object>)' and 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(string)'