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

Auto Expand a Grouped Item

1 Answer 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 09 Aug 2011, 02:26 PM
Hello!
I have a Telerik RadGridView on my page and i manage to auto group de results when the page loads using the GroupDescriptors
Example:
<telerik:RadGridView.GroupDescriptors>
                <telerik:GroupDescriptor Member="Project.Project"
                                         DisplayContent="Project"
                                         SortDirection="Ascending"
                                         />
            </telerik:RadGridView.GroupDescriptors>

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 09 Aug 2011, 02:49 PM
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 >>

Tags
GridView
Asked by
Missing User
Answers by
Vanya Pavlova
Telerik team
Share this question
or