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

[Solved] FilteringControl - any way to make it close via code?

2 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
MB
Top achievements
Rank 1
MB asked on 21 Oct 2010, 11:15 PM

We have implemented our own custom filtering control.

For consistency, we are providing Ok/Cancel buttons at the bottom.

This has all be implemented fine and works well - but I'd like to close the filtering control once ok/cancel is clicked.

I guess the only idea I have had was to try to set the control visibility, but this seems like a bad idea.

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 22 Oct 2010, 11:28 AM
Hi Mark,

In our online blog library you may find an article that will help you to achieve the desired result
Customize RadGridView's Default Filtering Control with Attached Behaviors (Silverlight & WPF).

Hope this helps.
 
Best wishes,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
MB
Top achievements
Rank 1
answered on 22 Oct 2010, 02:00 PM
Vanya,

This line did the trick:
var popup = this.ParentOfType<System.Windows.Controls.Primitives.Popup>();

Gave me the handle I needed - thanks so much for the link!
Tags
GridView
Asked by
MB
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
MB
Top achievements
Rank 1
Share this question
or