Column Wordwrap in JQGrid
You need to take a look at the specific classes applied to your jqGrid th column headers. In my case I had the following: ui-th-div-ie ui-jqgrid-sortable
Looking a little further I found that there were two CSS issues:
- white-space: normal
- height: 16px
Both these CSS attributes where defined in ui.jqgrid.css. Realising that I had a specific requirement for this grid that I didnt want to have affecting other implementations I came up with the following solution:
$(".ui-jqgrid-sortable").css('white-space', 'normal');$(".ui-jqgrid-sortable").css('height', 'auto');