RadFilter for Dummies ???

4 posts, 0 answers
  1. Paul
    Paul avatar
    8 posts
    Member since:
    Oct 2012

    Posted 24 Jun 2013 Link to this post

    Hi All,
       we just discovered the RadFilter control.

    We had been mostly using standard asp controls to feed parameters into a code behinds method call to a stored procedure, thus every time we wanted to re-filter the data set, we got the data set again with a fresh query.

    I had been putting in column by column custom filtering when I stumbled across the RadFilter control.

    While the RadFilter control is very powerful, we are afraid some of our less knowledgeable users will be clueless on how to use it.

    Can we:
    1) Preset the RadFilter with a set of initial filters?
    2) Set up "Presets" of commonly used filter sets that I could apply with a button press?
  2. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 27 Jun 2013 Link to this post

    Hello Paul,

    You could achieve the desired functionality by following the demo shown below. You could take a look at the CreateDefaultFilterExpressions method which adds expressions to the RadFilter.RootGroup. Note that the same approach could be used in a button click scenario.

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Paul avatar
    8 posts
    Member since:
    Oct 2012

    Posted 01 Jul 2013 Link to this post

    Thanks, your article Filter - Working With Items And Expressions did indeed show me how to add default filter expressions to the rad filter control.

    I am getting feedback that this will be still too complex for some users.

    I see we can have both a RadFilter control and column filtering on at the same time - I guess they both will just edit the RadGrids filter expression? 

    If we have both, how could we keep the radFilter expressions in sync with the column filters. ( That is to say both filters should never contradict each other - if I change a column filter, the the radFilter should pick up and show the change and visa-versa.
  5. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 02 Jul 2013 Link to this post

    Hello Paul,

    Unfortunately, turning RadFilter and RadGrid build in filtering is not supported and keeping both controls in sync is complex scenario and the implementation will require processing and parsing individual expressions and support for both turning RadGrid expressions to RadFilter expressions and vice versa. Note that such implementations are developer responsibility.


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