Hi,
How can i open the filtering control popup for a given column code behind?
For example,
private void ShowFilteringControl(GridViewDataColumn column)
{
myFilteringControl = new ????;
myFilteringControl.Show();
}
or, something like that?
Thanks.
3 Answers, 1 is accepted
0
Accepted
Dimitrina
Telerik team
answered on 18 Mar 2015, 10:12 AM
Hi,
The FilteringControl is a Popup and it is shown on the screen over RadGridView control. GridViewColumns do not expose a method to open the filtering control from code behind instead of waiting for a user interaction.
You can still find the instance of the specific Popup and try implementing any modifications yourself.
foreach (var headerCell in this.myGrid.ChildrenOfType<GridViewHeaderCell>())
{
var popUp = headerCell.ChildrenOfType<Popup>().FirstOrDefault();
// do any modification on the Popup itself
}
}
Regards,
Dimitrina
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
On a side note, you can also try the following approach by finding the respective FilteringDropDown element and setting its property IsDropDownOpened to True:
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.