Hi Steven,
I am afraid that we do not have a runnable example of separate WebApp and WebApi.
Indeed, In order to use the [DataSourceRequest] a reference to the Kendo.Mvc.UI should be included, as it is described for example in the Grid Custom binding article linked here. By using the DataSourceRequest and ToDataSourceResult() all data operations like paging, filtering, grouping, and sorting are performed "automatically" behind the scenes. Thus, I would recommend to include Kendo.MVC.UI in your project.
I have tested locally in a sample project that you will find attached. In the project on a button click a request to the WebApi endpoint is sent. The applied filter is received in the remote endpoint without any errors. The filtered data is console logged. Below is the respective endpoint, that you will find in the ‘GridController.cs’ file:
[HttpGet]
public ActionResult Get([FromBody][DataSourceRequest]DataSourceRequest request)
{
return Json(service.Read().ToDataSourceResult(request));
}
I have tested also by filtering a Grid data as demonstrated below:
var grid = $("#grid").data("kendoGrid");
grid.dataSource.filter({ field: "ProductName", operator: "contains", value: "5" })
In case the issue continues to persist, please send us an isolated runnable sample where the described issue is reproduced. This will enable us to examine it locally and look for its cause.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.