Does the RadFilter control provide any function to return the filter string? for example:
(ShipCity = 'Irvine' AND OrderDate = '11/8/2010 12:00:00 AM')
I tried SaveSettings but it returns a unreadable string.
Additionally, if I have a string, how can I recreate the filter using my string? Is there any API I can use?
Thanks and have a great day.
7 Answers, 1 is accepted
There is no property in the current version of RadFilter that returns the string representation of the filter clause. You can modify and get reference to the RadFilter expressions using RootGroup property and from there access the expressions, filter functions, values etc. for the filter control.
the Telerik team
However, there is an easy workaround to this limitation. If you observe the generated HTML, filter query is displayed in div element having class "rfPreview".
I've used a simple java-script to fetch the query & save it in server side hidden-field.
Sorry - I think I posted this in the wrong place 2 times...
Hi - I'm asking 7 years after the original post... With the latest version of Telerik ASP.NET AJAX, can I get to the preview string in the RadFilter control?
I am afraid that the requested functionality is presently not supported by the filter component. You can file a feature request it in our feedback portal.Regards,
Telerik by Progress