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

Hiding a group in RadGridView

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MilesR
Top achievements
Rank 1
MilesR asked on 28 Dec 2017, 05:41 PM

Hello,

I have a RadGridView that groups its items by an ID.  There is some filtering done that results in some of the groups only having one row in them.  I am struggling to find a way to hide or filter out the groups that only have one item in them.  Thank you for any suggestions or help.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 02 Jan 2018, 12:24 PM
Hi Miles,

In order to achieve this, you can hook up to the Grouping event of RadGridView. It is raised when the grouping operation is about to be performed. At this state you can add the needed descriptor to the FilterDescriptors collection of the control, thus the needed group would not be displayed. More information can be found in the Programmatic Filtering topic. Can you please check it out?

Hopefully, this helps.

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
MilesR
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or