Retrieve header elements of grid

Hi,

How would it be possible to retrieve the header elements of a grid?

Thanks.

If you need information about grid structure, you can serialize grid with this information using setSerializationLevel() method docs.dhtmlx.com/doku.php?id=dhtm … ationlevel

I’m looking to pass the header HTML elements into a YUI dialog context as an array, this is why I’m trying to retrieve the elements themselves.

you can get label of column as

var label = grid.getColumnLabel(index)

so you can loop through all columns and build an array of labels.