In Kendo UI MVC, you can use one action for all your data widgets (grid, combobox, etc.) and filtering is handled the same. However, when I try to use a kendo-ui JS widget to hit that same action, it passes the filtering differently. Why is that? How can I bridge that gap?
If you use MVC Combobox and post to action, the filtering gets sent as:
sort: Name-asc
page: 1
pageSize: 80
group:
filter: Name~contains~'manager'
If you use the JS Combobox and post to action, its sent as:
filter[logic]: and
filter[filters][0][value]: manager
filter[filters][0][field]: Name
filter[filters][0][operator]: contains
filter[filters][0][ignoreCase]: true
Because of this different structure, my action with signature:
public IActionResult QueryEntities([DataSourceRequest] DataSourceRequest request)
The request.Filters is always empty. How can I convert the js filter for combobox so my action can recognize it? And why are they handled differently anyway? I thought MVC version just wraps the JS version and generates the JS from server side code.