PDA

View Full Version : Drag and drop column reordering for Grid


yogurtearl
11-09-2006, 11:36 AM
I would like to request Drag and drop column reordering.

Also is the way to programmatically reorder columns to use ColumnModel.setDataIndex?


Thanks,

yogurtearl

jack.slocum
11-09-2006, 07:22 PM
You could do it that way. After your change of the dataIndex you'd want the GridView to rerender the data so you could fire datachanged on the data model to force a rerender:

cm.setDataIndex(0, 1);
dm.fireEvent('datachanged', dm);