PDA

View Full Version : Drag and drop column reordering for Grid



yogurtearl
9 Nov 2006, 8: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
9 Nov 2006, 4: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);