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

Expand/Collapse programmatically

1 Answer 134 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
ipnordic
Top achievements
Rank 1
ipnordic asked on 06 Oct 2013, 12:42 PM
How do I Expand/Collapse a .RowGroupDescription programmatically?

I found it: RadPivotGrid1.AutoExpandRowHeaders = False

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 Oct 2013, 02:24 PM
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 >>
Tags
PivotGrid and PivotFieldList
Asked by
ipnordic
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or