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
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.
For what it's worth, here it is for the header row:
.ui-jqgrid .ui-jqgrid-htable th div, .ui-jqgrid-sortable {
height:auto;
overflow:hidden;
white-space:normal !important;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With