We have been using an older version of your libraries from 2021 and decided to update it to the current one.
We have a grid and we have been using server-side filtering/sorting/etc... In the old version there used to be syntax like this:
filter: RequestStatus~eq~1~and~PersonFullName~contains~'Steve'
We took this string, parsed, and processed the data. However, with the update, this is no longer the case. Now it looks like this:
And we are clueless on how to properly parse and or process this format on our back end.
This is the code that we use on the front end to query the back end.
gridDataSource = new kendo.data.DataSource({
serverFiltering: true,
serverGrouping: true,
serverSorting: true,
serverPaging: true,
serverAggregates:true,
pageSize: 25,
transport: {
read: {
url: __config.baseUrlAbsolute + "Requests/Home/GetCurrentViewRequests",
dataType: "json",
data: function () {
return {
type: requestTypesList[requestType],
id: personId,
};
}
}
},
});
})
Our backend is .NET MVC and this is the method that we have used to process the request. But this no longer works.
public string GetCurrentViewRequests([DataSourceRequest] DataSourceRequest request, int type, int id)
{
var filters = Request.Params.Get("filter");
var groups = Request.Params.Get("group");
var sorts = Request.Params.Get("sort");
//Process
}
Would you be so kind as to point us in the right direction on how to properly parse and process the request?