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

Grouping - Only 1 group can be expanded

1 Answer 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
JIG
Top achievements
Rank 1
JIG asked on 27 Feb 2013, 06:28 PM
Hi,

In my Gridview I use grouping. I want to limit the grid so that only 1 group can be expanded at the same time. So I'm looking for a way close the expanded group when another is opened.
I tried to use the GroupRowIsExpandedChanging event and call the CollapseAllGroups method hoping that after that it would expand the click group. But it seems that it's not possible to manipulate the groups while in this event.

Is there another way I can do this?

Kind regards.

1 Answer, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 04 Mar 2013, 12:00 PM
Hi Robrecht,

Indeed, you should use the GroupRowIsExpandedChanging event. Please check this forum thread for a reference. Although, it is for Silverlight, the approach will be the same for WPF. 

I hope this helps.

Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
JIG
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or