2 Answers, 1 is accepted
Hello Renuka,
Thank you for your interest in our control for WinForms.
I will need more information regarding your requirement. What do you mean by filter icon? Do you want to get which column is filtered by the user or do you want to get the icon of the columns which can be filtered?
Regards,
Dinko | Tech Support Engineer
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Dinko
I want while loading the radgrid if any filters (saved layout) their then that filter enable column names.
Thanks
Hi Renuka,
Thank you for confirming this.
You can subscribe to the LayoutLoaded event of the RadGridView. This event will be called when the load process is finished. In the event handler, you can iterate the Columns collection of the control and check if the FilterDescriptor property is null. If it is not, then a filter has been applied.
this.radGridView1.LayoutLoaded += RadGridView1_LayoutLoaded;
private void RadGridView1_LayoutLoaded(object sender, LayoutLoadedEventArgs e)
{
foreach (var column in this.radGridView1.Columns)
{
if(column.FilterDescriptor != null)
{
string columnName = column.Name;
}
}
}
I hope that this approach will work for you.
Regards,
Dinko | Tech Support Engineer
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.