Dynamically build list of FilterFields based on data source

2 Answers 109 Views
Filter Grid
Bill
Top achievements
Rank 1
Iron
Iron
Bill asked on 22 May 2023, 05:55 PM
Is it possible to dynamically build the list of FilterFields for a TelerikFilter based on search field data stored in a database? We have complicated nested JSON to search through and so normal IQueryable operations aren't quite yet available to us, we will have to do some massaging of the DataSourceRequests either client or server-side.

2 Answers, 1 is accepted

Sort by
0
Accepted
Bill
Top achievements
Rank 1
Iron
Iron
answered on 25 May 2023, 01:48 PM
For future reference, here's an example of how it was done (including an answer to an issue with filter operators not changing):
https://www.telerik.com/forums/filter-operations-not-changing-by-type-for-dynamically-built-filter-fields
0
Bill
Top achievements
Rank 1
Iron
Iron
answered on 22 May 2023, 07:58 PM
I realize now how silly this question is in Blazor- just @foreach and loop through to build the list
Tags
Filter Grid
Asked by
Bill
Top achievements
Rank 1
Iron
Iron
Answers by
Bill
Top achievements
Rank 1
Iron
Iron
Share this question
or