Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by wqiu on Jan 16, 2008 08:14
open dhtmlx forum
dhtmlXGridFromTable - how to wrap overflow text

I initialized a grid from a html table using new dhtmlXGridFromTable(). Some cells have very long Strings. How to wrap the long strings so the users can see the whole values without having to make the cells wider?

Thanks a lot!!!!
Answer posted by Support on Jan 16, 2008 08:27
You need to enable multiline mode for grid
Just add next attribute for your source table

    <table multiline="true" ...
Answer posted by wqiu on Jan 16, 2008 08:35
Thanks a lot!!!! It works like a charm!!!!

I actually tried to the enableMultiline(true) method, but it didn't help.So it seems we have to set this attribute before the grid is created other than set the attribute afterward. It makes sense now!

Thanks!!!