Grouping - Only 1 group can be expanded

2 posts, 1 answers
  1. CreoniX
    CreoniX avatar
    28 posts
    Member since:
    Sep 2009

    Posted 27 Feb 2013 Link to this post

    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.
  2. Answer
    Yoan
    Admin
    Yoan avatar
    1070 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,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top