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

Grid with Hierarchy and sorting

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AdamL
Top achievements
Rank 1
AdamL asked on 13 Aug 2008, 07:34 PM
My question is two parts:

1.  I have a Hierarchy grid that is not keeping state.  When I expand nodes and then sort the top level grid, the grid retruns to the all-collapsed state.  Is there a way to maintain the expand / collapse state during the sort callback?

2.  I also need a way to collapse all / expand all from a button press.  This needs to work in conjunction with #1.  The button for the action can be in the grid action bar or a separate button outside the grid.

Thanks in advance.

- Adam

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Aug 2008, 05:57 AM
Hi Lindsaad,

1. Here is code library submission which explains how to retain the expanded state in hierarchical Grid on rebind.
Retain expanded/selected state in hierarchy on rebind

2. I have submitted a code library on adding ExpandAll/CollapseAll option in the grid header for a hierarchical grid. Go through it and see whether it meet you requirements.
Custom expand/collapse column with ExpandAll/CollapseAll image button in the header

Thanks
Shinu.
Tags
Grid
Asked by
AdamL
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or