Welcome Guest Search | Active Topics | Sign In | Register

[Javascript] Grid.ClientSideAfterColumnReorder Options
Laurent
Posted: Thursday, September 3, 2009 8:07:10 PM
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.

eo_support
Posted: Thursday, September 3, 2009 8:38:59 PM
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!
Laurent
Posted: Friday, September 4, 2009 4:35:57 AM
Rank: Newbie
Groups: Member

Joined: 9/11/2007
Posts: 8

Nice solution.
Thanks !


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.