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

Determine the number of filtered columns in GridView

2 Answers 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 20 Jun 2016, 08:03 PM

Dear support,

I need a textlabel above the grid that displays the number of filtered columns.

My columnfilters are all implemented the way that is described in der following article http://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/custom-filtering-controls.

Is there a property which contains the number of active filter that I can bind to my textlabel? Or how can I implement it to achieve this aim.

Thanks in advance

Marcus

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 22 Jun 2016, 03:12 PM
Hello Marcus,

To achieve the desired behavior, you can bind the Content property of the label to FilterDescriptors.Count property of RadGridView, which will return the number of the filtered columns.

I hope that this helps.

Regards,
Martin Vatev
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Marcus
Top achievements
Rank 1
answered on 23 Jun 2016, 08:07 AM

Hello Martin,

it. works! Thanks

Marcus

Tags
GridView
Asked by
Marcus
Top achievements
Rank 1
Answers by
Martin
Telerik team
Marcus
Top achievements
Rank 1
Share this question
or