Save/LoadSettings method for RadFilter

2 posts, 0 answers
  1. Greg Figueroa
    Greg Figueroa avatar
    82 posts
    Member since:
    Apr 2005

    Posted 16 Aug 2010 Link to this post

    Hi guys,

    These methods work great except for one circumstance...

    Since there is no default "revert" functionality in RadFilter, I have to do my own.  I do this using the SaveSettings and LoadSettings methods, and work great, except if the the filter is blank to begin with.

    • Start with a blank filter
    • savedFilter = RadFilter.SaveSettings()
    • Add groups and expressions
    • RadFilter.LoadSettings(savedFilter)

    It will not revert back to a blank filter.  You can replicate this on your demo here.

    I admit its minor, and the "x" at the top level will clear them, but it interferes with the consistency of my "revert" function.

    Thanks, Greg

  2. Greg Figueroa
    Greg Figueroa avatar
    82 posts
    Member since:
    Apr 2005

    Posted 16 Aug 2010 Link to this post

    It appears I've answered my own question, and taking a copy of the demo I listed in my previous post, it also fixes that demo...

    Simply clear the RootGroup Expressions before applying LoadSettings()...

    RadFilter.RootGroup.Expressions.Clear();
    RadFilter.LoadSettings(savedFilter);

    Thanks, Greg
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top