Jquery – Column Wordwrap in JQGrid

jqgridjqueryword-wrap

Anybody knows on how to wrap column names in JQGrid. Please find my JSON code below

colModel: [
{ name: 'RequestID', index: 'CreditRequest.CreditRequestID', width:100, align: 'left' },…..

With reference to the above code if the size of the content exceeds I want it to be wrapped. Any thoughts or comments

Best Answer

Just reference it in your own css file.

.ui-jqgrid tr.jqgrow td {
    height: 50px;
    white-space: normal;
}

As long as your css file is listed in the header after the jqGrid.css file then it will override it.

Related Topic