I have a jQuery data-table which I specified the column width likes following:
"aoColumnDefs":[
{ "sWidth":"40%" },
{ "sWidth":"10%" },
{ "sWidth":"50%" } ]
I also specified the CSS style like:
td { position: relative, word-wrap: break-word; }
The table displays exactly as I wanted, long entries have been wrapped. However, when I sorted on the second column (the sorting is handled by the back-end server), some of the values of the first column are long but never broke and wrapped. The table showed only one column (due to the longest length of the value exceeded the table width).
How can I get the data-table obey the initialized width and render correctly?