PDA

View Full Version : Grid Stuff



Voyd
9 Dec 2011, 1:54 PM
Hi, I am currently working with a grid. My user has a need to programmaticaly move a column of the grid based on a button click. To solve this, I found -

grid.headerCt.move(2, 1);

Now, I am concerned that this is some sort of hack that won't update well. I can't find headerCt anywhere in the 4 docs, and that concerns me. Can someone point me in the direction of the documentation for headerCt, or was it just something ripped from the DOM and not meant for public use.

Cheers.

mitchellsimoens
9 Dec 2011, 3:05 PM
headerCt is the reference to the Ext.grid.header.Container for that grid. The move method the way to do this.

Voyd
12 Dec 2011, 11:22 AM
I am also running into the problem that the column headers are being switched but not the data below. Is there a quick way to do this as well, or should headerCt.move(int, int) be taking care of all the data as well ??