Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by slisbin on Mar 06, 2009 12:50
open dhtmlx forum
Variable Grid Header Alignment

I see how I can align all headers using  div.gridbox table.hdr td in dhtmlxgrid.css but cannot figure out how to align the headers to the cell alignment below it.
Answer posted by dhxSupport on Mar 09, 2009 07:05

You can set aling to the headers via 3rd parameter of setHeader method:

mygrid.setHeader('1,2,3,4,5','',['text-align:center;','text-align:left;','text-align:right;','','']);

Answer posted by slisbin on Mar 09, 2009 08:50
Thanks that worked. Can you tell me where that is documented??
Answer posted by dhxSupport on Mar 09, 2009 09:24