PDA

View Full Version : Grid column re-order



mgrouse
13 Jul 2009, 2:56 PM
Is there a way to make my Grid columns movable/re-orderable?

In my search of the forum I see only one mention of this in GXT and its a feature request from 2007. I see in the java doc there is an event for Column move, but I see no function for enable/disable this feature in Grid, View, Column Config, or Column Model. Am I missing something? I _have_ been staring at the screen for a rather long time... ;)

Sorry if this has been covered before.

Michael

lioledingue
27 Jan 2010, 2:19 AM
Also interested, up !

Nico33
27 Jan 2010, 3:58 AM
Is it what you're looking for ? http://www.extjs.com/examples/explorer.html#reorderinggrid

lioledingue
27 Jan 2010, 4:52 AM
No, I would like to re-order columns, not rows :s

Atum
27 Jan 2010, 5:38 AM
No, I would like to re-order columns, not rows :s

may be

grid.reconfigure ( store , cm )

old store

new

config = new ArrayList<ColumnConfig>();
config.add(...);

cm = new ColumnModel(config);

micgala
28 Jan 2010, 2:43 AM
Hi, if you mean by drag and drop, this is scheduled (and hopefully it will be done) for 2.2.

http://www.extjs.com/products/gxt/roadmap.php

Regards,
Michel.

lioledingue
28 Jan 2010, 5:31 AM
Pleased to hear that !

By the way, we have decided do the following workaround :
- Open a dialog that enable us to manage columns list order
- Then reload the new model in the table after dialog is closed