Is there a way to retrieve the filters specified by the user in the RadzenDataFilter component? I would like to use this data to filter data on the server side.
enchev
July 11, 2024, 3:18pm
2
This demo might help you:
The example is about the filters of the RadzenDataGrid component. I would like to retrieve the filters from the RadzenDataFilter component, as shown in the image above.
enchev
July 11, 2024, 3:35pm
4
There is a new ToFilterString() extension method added recently that can be used similarly to the demo I've shared in my previous post:
opened 04:39PM - 09 Jun 24 UTC
closed 04:58AM - 12 Jun 24 UTC
<!--
IMPORTANT: Read this first!!!
1. If you own a Radzen Professional or … Еnterprise subscription you can request your feature via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise)
2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers.
3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions.
4. Please adhere to the issue template.
-->
**Is your feature request related to a problem? Please describe.**
The RadzenDataGrid can create Linq-like filters, to send to a Dynamic Linq "Where" clause. RadzenDataFilter does not support this, it only creates OData-compliant filters.
**Describe the solution you'd like**
I'd like to be able to have Linq-compliant filter strings from a RadzenDataFilter component
**Describe alternatives you've considered**
I could re-create all my controllers to be OData compliant. This would be a lot of work.
**Additional context**
Attached the QueryableExtensions.txt (cs) with the requested ToLinqFilterString extension method. Feel free to add it, or to provide me with the possiblity to create a Pull Request.
[QueryableExtension.txt](https://github.com/user-attachments/files/15753315/QueryableExtension.txt)
1 Like