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

RadDataGrid Conditionally show group headers

1 Answer 84 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 07 Jan 2020, 04:24 PM

I'd like to be able to not show a group header if the group contains only 1 row. Using the grouping examples I am able to show a different header based on the number of children in the group, but can not see how to not show any header for single item groups.

 

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Jan 2020, 02:04 PM

Hi Dave,

I am afraid that wouldn't be possible - when the DataGrid is grouped, you can expand/collapse each of the groups by clicking on the group header. If a certain group header is hidden, how would you expect the scenario to be handled? In this case, all the other groups could be collapsed, except the ones that have only one item - this wouldn't look very good actually.

Let me know if I can assist with anything else.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Dave
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or