Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 18, 2008 07:39
open dhtmlx forum
DHX Grid : Allignment Issues for Header Text Texas well as content Text.

Hi there,
I have following issue with Grid. Please Help.
Image Link: http://img384.imageshack.us/my.php?image=gridalignmentissuehj2.jpg
Answer posted by Support on Sep 19, 2008 06:39
>> how to center align the header cell

The third parameter of the setHeader method is array of cells' styles:

grid.setHeader("Col 1,Col 2,Col 3,Col 4","",["","","","text-aligh:center"]);

Regarding cell problem:
In case of using html tags, the text align of the cells can be different from the default. So, you should set the necessary style for these tags. For example:
...
<cell><![CDATA{
<span style="...">
..
</span>
]]></cell>
....
Answer posted by Tejas Shah on Sep 19, 2008 07:06
Hi there,
             How to do header text alignment in XML ???
             I used align="center", but it center alignes the data under that header, not header text.