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

Closing filter control when filtering is done

4 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas LEBRUN
Top achievements
Rank 1
Thomas LEBRUN asked on 24 Nov 2009, 08:52 AM
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 !

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 26 Nov 2009, 02:01 PM
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.
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 26 Nov 2009, 07:51 PM
Hi Ross,

Yeah, that sound logic. Thanks for youre response !
0
Scott Rakestraw
Top achievements
Rank 1
answered on 28 Nov 2009, 10:40 PM
Is there any way when we use custom filtering controls to close the window?
0
Rossen Hristov
Telerik team
answered on 30 Nov 2009, 10:23 AM
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.
Tags
GridView
Asked by
Thomas LEBRUN
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Thomas LEBRUN
Top achievements
Rank 1
Scott Rakestraw
Top achievements
Rank 1
Share this question
or