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

Nested Grid Retain Expanded State on Sort

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 27 Aug 2014, 10:07 PM
Hello,

I have a grid and I can click on the left arrow to expand the nested grid within. If I have a nested grid expanded then I click on a column header to sort the grid then every row will become collapsed. If I set HierarchyDefaultExpanded to true then if I collapse a nested grid then try to sort, then all of my nested grids will go back to expanded. I tried setting RetainExpandStateOnRebind to true but that doesn't help in this scenario.

How would I be able to retain expanded state when I click on a column header to sort items?


Thank you,

Brett

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 28 Aug 2014, 03:55 AM
Hi Brett,

Please take a look at this code library submission which explains how to retain the expanded state of a Hierarchical grid on rebind. You could try the same approach.
Retain expanded/selected state in hierarchy on rebind

Thanks,
Princy
Tags
Grid
Asked by
Brett
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or