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

Expand/Collapse All

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
thdwlgP
Top achievements
Rank 1
thdwlgP asked on 06 Apr 2010, 07:45 PM
I have a grid with two level of group.
Is there a built in function that expands everything and collapse everything?
Or do I have to loop through each row and expand one by one?

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 09 Apr 2010, 07:38 AM
Hi jihae,

Here is the code needed for that requirement:

if (RadGrid1.MasterTableView.GroupsDefaultExpanded)
{
    RadGrid1.MasterTableView.GroupsDefaultExpanded = false;
}
else
{
    RadGrid1.MasterTableView.GroupsDefaultExpanded = true;
}
RadGrid1.MasterTableView.Rebind();

Hope it helps.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
thdwlgP
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or