Closing filter control when filtering is done

5 posts, 0 answers
  1. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 24 Nov 2009 Link to this post

    Hi,

    Currently, the filtering control is closed when the user click outside the control. It would be nice to be able to close it when user click on a button or after filtering is done. How can we do that ?

    For the 1, it could be possible to use a custom control for filtering but how can we reuse the one which is by default ?

    Any ideas ?


    Thanks !
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 26 Nov 2009 Link to this post

    Hello Thomas LEBRUN,

    The filtering popup can be closed only when the user clicks outside and that is by design. We have decided to make it this way because we have no way of knowing when filtering is done and what is the definition of "filtering is done". So the user will have to click on the filtering funnel or outside to close this pop-up.

    Best wishes,
    Ross
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 26 Nov 2009 Link to this post

    Hi Ross,

    Yeah, that sound logic. Thanks for youre response !
  5. Scott Rakestraw
    Scott Rakestraw avatar
    84 posts
    Member since:
    Sep 2005

    Posted 28 Nov 2009 Link to this post

    Is there any way when we use custom filtering controls to close the window?
  6. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 30 Nov 2009 Link to this post

    Hi Scott Rakestraw,

    Yes, you can do this in the following way (inside your custom filtering control):

    using Telerik.Windows.Controls;
    using Telerik.Windows.Controls.GridView;

    ...code ommitted...

    var popup = this.ParentOfType<System.Windows.Controls.Primitives.Popup>();
    if (popup != null)
    {
       popup.IsOpen = false;
    }

    Let me know if there are problems.

    Kind regards,
    Ross
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
DevCraft banner