PDA

View Full Version : grid - get columns display order



dedoz
4 Aug 2012, 8:41 AM
how to get grid columns in the order they are displayed currently ?

ex: i define a grid with column A and B, after render the user reorder them and now grid is playing B column first and second column is A.

if i check grid.columns gives me the columns in the original order, A then B, but how can i figure the order of column after user reorder them.

(sorry for my bad english :d)

Zdeno
4 Aug 2012, 11:16 AM
grid.getView().getGridColumns()

http://jsfiddle.net/Xn4Fm/1/

dedoz
4 Aug 2012, 12:38 PM
thanks