Expand/Collapse All

2 posts, 0 answers
  1. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 23 Sep 2013 Link to this post


    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.
  2. Ralitsa
    Admin
    Ralitsa avatar
    190 posts

    Posted 24 Sep 2013 Link to this post

    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 >>
Back to Top