Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tep on Sep 01, 2008 19:40
open dhtmlx forum
set header alignment, not changing the objects property..

Hi,

I've read a another thread about this..
but the solution you gave will change the objects property..

what i am trying to achieve is to be able to set different alignment of the header for every instance of the object..

for example i have to dhtmlgrids on my page..the 1st one has its column headers aligned to the left and the other dhtmlgrid to the right..
the thing is i dontknow how to do this, on either the xml or the jsp page(javascript part) it is into..

I hope you can help out..

Thanks in advance..
Answer posted by Support on Sep 02, 2008 01:55
If you definining config by js code, you can use 3rd parameter of setHeader
     grid.setHeader("A,B,C",null,["text-align:right;","text-align:center;","text-align:left;"])

When data created from XML, you can use inline HTML tags to define markup
<column ... ><![CDATA[ <div style='width:100%; text-align:right;'>Header text</div> ]]></column>