Rank: Newbie Groups: Member
Joined: 9/11/2007 Posts: 8
|
Hi,
I have a page with a grid and a menu listing the grid columns in the same order. I don't know how to reorder the menu items (client side) when one reorders the grid columns. I might be missing something but I think it would be great to have a Grid.ClientSideAfterColumnReorder property.
Thanks, Laurent.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Great suggestion. We will look into it and see what we can do. In the mean time you may want to handle the menu's ClientSideOnGroupExpand event. Inside that event you can check the new order of the grid columns and then update your menu items to reflect the new order. You will need to examine each columns's original index (GridColumn.getOriginalIndex) and new index (GridColumn.getIndex) to figure out each columns' position.
There is no way to re-order the menu items on the client side. However you can change each menu item's text to reflect the new column name and they will look as if they have been re-ordered.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 9/11/2007 Posts: 8
|
Nice solution. Thanks !
|