I am using kendo react; how should I convert from a search query string into grid data state object? I am trying to get a query from URL and convert it into json object and pass it to the grid so it can do filtering, sorting, etc.
input can be the query strings below or URLSearchParams object.
const queryString = "sort=triggerAt-desc&page=1&pageSize=10";
?filter=(notes~contains~%27te%27~and~status~contains~%27up%27)&sort=triggerAt-desc&page=1&pageSize=10
The output should be:
{ sort: [ { field: "triggerAt", dir: "desc" } ], skip: 0, take: 10, }
Hi,
I am posting a method that handles the basic scenarios for filtering, sorting and paging:
Regards,
Konstantin Dikov
Progress Telerik
Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!