This is a migrated thread and some comments may be shown as answers.

Populate RadFilter From String

1 Answer 19 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Ashley
Top achievements
Rank 1
Ashley asked on 26 Nov 2013, 05:21 PM
We currently use the RadFilterSqlQueryProvider to get a string representation of the filter control: 
var provider = new RadFilterSqlQueryProvider();
provider.ProcessGroup(e.ExpressionRoot);
var expression = provider.Result;

We store this string in the database to be used elsewhere. We also save the Base64 result from the SaveSettings() method to re-populate the control.

Is it possible to populate the filter from the sql string rather than the Base64 string? We'd like to avoid having two version of the filter expression saved. Can we somehow convert that string to the Base64 format the RadFilter control expects?

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 29 Nov 2013, 07:44 AM
Hi Ashley,

Unfortunately, the desired functionality could not be achieved. The only option for saving and loading settings for the RadFilter is to use the Base64 string that is returned from the SaveSettings method.

Regards,
Antonio Stoilkov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Filter
Asked by
Ashley
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or