Populate RadFilter From String

2 posts, 0 answers
  1. Ashley
    Ashley avatar
    16 posts
    Member since:
    Feb 2012

    Posted 26 Nov 2013 Link to this post

    We currently use the RadFilterSqlQueryProvider to get a string representation of the filter control: 
    var provider = new RadFilterSqlQueryProvider();
    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?
  2. Antonio Stoilkov
    Antonio Stoilkov avatar
    530 posts

    Posted 29 Nov 2013 Link to this post

    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.

    Antonio Stoilkov
    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.
Back to Top