Auto Expand a Grouped Item

2 posts, 1 answers
  1. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 09 Aug 2011 Link to this post

    I have a Telerik RadGridView on my page and i manage to auto group de results when the page loads using the GroupDescriptors
                    <telerik:GroupDescriptor Member="Project.Project"

    I have 4 grouped items, that are the status of the projects:

    Started, In Progress, Stoped, Finished.

    When the page loads all the groups are "Collapsed" but i want that the Started group stay "visible" or "opended" is there a way to do this?

    i will send a image that examples what i'm triyng to do.
  2. Answer
    Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 09 Aug 2011 Link to this post

    Hi Joao Paulo,

    If you need to programmatically expand and collapse specific groups
    you may use ExpandGroup/CollapseGroup methods of RadGridView:

    // to expand first group
    this.gridView.ExpandGroup(this.gridView.Items.Groups[0] as IGroup);
    // to collapse the first group
    this.gridView.CollapseGroup(this.gridView.Items.Groups[0] as IGroup);

    If you want to read more about grouping you may refer to our online documentation following this link.

    Kind regards,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top