Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tyler on Nov 24, 2009 09:49
open dhtmlx forum
set header style from xml

I would like to set the style of one header column to have padding:0 when I load from XML, how can I do this?
Answer posted by dhxSupport on Nov 25, 2009 01:30
There is no way to set style for one header cell from xml. It can be done only with API:
 mygrid.setHeader("A,B,C",null,["text-align:right;","text-align:left;","text-align:center"]);
http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:api_method_dhtmlxgridobject_setheader
Answer posted by Tyler on Nov 25, 2009 07:44
can setHeader be called after init?
Answer posted by dhxSupport on Nov 25, 2009 08:00
No, setHeader cannot be called after init.