Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jeremy on Mar 31, 2008 10:50
open dhtmlx forum
datagrid header/column misalignment.

I have a 14 column datagrid with the following setting:

mygrid.setInitWidths("*,200,*,*,*,*,*,*,*,*,*,*,*,*");
mygrid.setColAlign("left,center,center,center,center,center,center,center,center,center,center,center,center,center");
mygrid.setSkin("modern");
mygrid.setColSorting("int,str,str,str,str,int,int,int,int,int,int,int,int,int");
mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,price,ro,ro,ro,ro,ro,price");


I want all columns except the second to be the same width, which they are now. However, the headers do not align with the column data unless I manually widen the header. How can I make the column data align to the left exactly with the correct header by default when the column data may be larger then the initial width?

thanks,
jeremy


Answer posted by Support on Apr 02, 2008 04:17
Unfortunately problem can't be reconstructed locally.
Please check attached sample - it uses the same code as in your case, but it works correctly.
Attachments (1)