Grouping - Only 1 group can be expanded

2 posts, 1 answers
  1. JIG
    JIG avatar
    72 posts
    Member since:
    Sep 2009

    Posted 27 Feb 2013 Link to this post


    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.
  2. Answer
    Yoan avatar
    1182 posts

    Posted 04 Mar 2013 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top