This question is locked. New answers and comments are not allowed.
How can I expand/collapse all RadGridView groups?
ExpandAllGroups() expands only the first group!?
Using this sequence, expands only the visible groups:
Using both in combination
does the job but after scrolling and opening/closing some groups manually, I have a NullReferenceException in Telerik.Windows.Controls.GridView.GrtidVIewVIrtualizingPanel.GetIsCached.
Any suggestions?
Cheers,
Jani
ExpandAllGroups() expands only the first group!?
Using this sequence, expands only the visible groups:
| foreach ( object item in radGridView.Items ) |
| { |
| GridViewGroupRow groupRow = radGridView.ItemContainerGenerator.ContainerFromItem( item ) as GridViewGroupRow; |
| if ( groupRow != null ) |
| { |
| groupRow.IsExpanded = true; |
| } |
| } |
Using both in combination
| foreach ( object item in radGridView.Items ) |
| { |
| GridViewGroupRow groupRow = GridView.ItemContainerGenerator.ContainerFromItem( item ) as GridViewGroupRow; |
| if ( groupRow != null ) |
| { |
| groupRow.IsExpanded = true; |
| } |
| } |
| GridView.ExpandAllGroups(); |
Any suggestions?
Cheers,
Jani
