Expand/Collapse programmatically

2 posts, 0 answers
  1. Thorben
    Thorben avatar
    4 posts
    Member since:
    Dec 2012

    Posted 06 Oct 2013 Link to this post

    How do I Expand/Collapse a .RowGroupDescription programmatically?

    I found it: RadPivotGrid1.AutoExpandRowHeaders = False
  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 09 Oct 2013 Link to this post

    Hi Thorben,

    Thank you for writing.

    Also you can expand or collapse rows with the following code snippet:
    PivotGridGroupTraverser rowTraverser = (PivotGridGroupTraverser)this.radPivotGrid1.PivotGridElement.RowScroller.Traverser.GetEnumerator();
    rowTraverser.Reset(); 
    while (rowTraverser.MoveNext())  
     
    {
        PivotGroupNode current = rowTraverser.Current;
        current.Expanded = true;
    }

    Please let me know if there is something else I can help you with. 

    Regards,
    Dimitar
    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top