Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by hepanxi on Jan 14, 2009 00:47
open dhtmlx forum
How to obtain header information?

Hello:

I am the definition of grid header setHeader (...) by the way.

I sometimes have to get the header information, how to do the same?

If I were in the definition of XML document header,

For example: <header> ...</ header>, in the javascript in the header how to obtain this information?
Answer posted by Support on Jan 14, 2009 01:22
a) you can use grid.getColumnLabel(index) to get text of header
b) you can include header in XML serialization
    grid.setSerializationLevel(false,false,true);
    var xml = grid.serialize();