Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 25, 2008 11:22
open dhtmlx forum
DHX Grid: How to center align the column header text thru XML

Hi there,
How to center align the column header text thru XML ????
I know how to do this with JS, but not thru XML.
Answer posted by Stanislav on Sep 29, 2008 16:49
There is no perfect solution, the next may work ( not for all skins )
<column ..><![CDATA[<div style='text-align:center; width:100%;'>Name</div>]]></column>

Technically, it possible to add custom js code to set column align and call it through afterInit/call@command - but it will resullt in messy XML structure