Edit this page

Accessing the filtering popup

The filtering control is a Popup and it is displayed on screen over RadGridView control. You can find the instance of the specific Popup and try implementing any modifications on its behavior.

Example 1: Find all available Popups

private void grid_Loaded_1(object sender, RoutedEventArgs e)
    this.Dispatcher.BeginInvoke(new Action(() => this.FindPopups()));

private void FindPopups()
    foreach (var headerCell in this.myGrid.ChildrenOfType<GridViewHeaderCell>())
        var popUp = headerCell.ChildrenOfType<Popup>().FirstOrDefault();

       // do any modification on the Popup itself

Opening filtering control from code

The filtering control can be opened in code by finding the respective FilteringDropDown element and setting its property IsDropDownOpened to True. For example:

Example 2: Open the first FilteringDropDown

private void Button1_Click(object sender, RoutedEventArgs e)
    clubsGrid.ChildrenOfType<FilteringDropDown>().First().IsDropDownOpen = true;

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article