Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mike on Dec 23, 2009 13:32
open dhtmlx forum
Grid column heading wraps

I am creating grids by load XML.

All works really great but if the heading text is too long, the words wrap and the heading height doubles, which is a bit too thick. Would rather have the heading stay and cut off the text.

I guess two questions...

Is there a way to keep the heading text from wrapping?

Is there a way to have the columns auto adjust horizontally to the text, instead of vertically?

Thank you,

Mike
Answer posted by dhxSupport on Dec 24, 2009 03:28
Please check this article https://dhtmlx.com/docs/products/kb/index.shtml?cat=kb&page=32&q=8242
>>Is there a way to have the columns auto adjust horizontally to the text, instead of vertically?
You can use adjustColumnSize() method http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:api_method_dhtmlxgridobject_adjustcolumnsize