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!!!

You need to enable multiline mode for grid
Just add next attribute for your source table

    <table multiline=“true”

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!!!