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

Expand/Collapse All

1 Answer 842 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 24 Sep 2013, 12:44 AM

Hi,

Is there a method I can invoke that will cause all groups to expand/collapse? Right now i am just iterating through the group collection and doing it individually.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 24 Sep 2013, 02:27 PM
Hello Kim,

Thank you for contacting us.

Yes, there are methods for expanding/collapsing the group rows in RadGridView. They are available at a template level. Here is how to access them for the MasterTemplate:
private void radButton1_Click(object sender, EventArgs e)
{
    radGridView1.MasterTemplate.ExpandAllGroups();
}
 
private void radButton2_Click(object sender, EventArgs e)
{
    radGridView1.MasterTemplate.CollapseAllGroups();
}

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
 

Regards,
Ralitsa
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Kim
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or