I have an odata endpoint that I would like to filter records based on a boolean value in a sub object.
How would I go about using FilterDescriptors to create the following bolded Query parameters in my OData call?
http://MyODATAEndPoint/MyRecords?$count=true&$expand=Flags($filter=IsCleared ne true)
1 Answer, 1 is accepted
0
Nadezhda Tacheva
Telerik team
answered on 24 Mar 2023, 03:55 PM
Hi John,
The creation of an OData query is essentially out of the Grid scope and should be handled by the developer based on the desired information you need to return from the service and display in the Grid.
As I understand the scenario, you are trying to create a query based on the filters applied to the Grid. For that purpose, you will need to get the current filters that the user selected.
Once you know what are the filter descriptors (and even if there are any), you will be able to create the correct query to return the matching results.
I hope you will find the above information useful. In case you need any assistance with the general setup of the Gird to consume OData services, you may also take a look at this sample app.
Regards,
Nadezhda Tacheva
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/.