Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrapping Text lines in JqGrid

Can you get lines of text to wrap in JqGrid? I have had a look round but i can't find anything.

like image 609
beakersoft Avatar asked Nov 13 '09 15:11

beakersoft


1 Answers

Try the following CSS:

    .ui-jqgrid tr.jqgrow td {         white-space: normal !important;     } 

This works for me using jqGrid 3.6.


As N30 pointed out, jqGrid 4.0 now supports a cellattr colModel option which can allow for a finer grain of control over text wrapping. From his example:

cellattr: function (rowId, tv, rawObject, cm, rdata) {      return 'style="white-space: normal;"'; } 
like image 126
Justin Ethier Avatar answered Sep 18 '22 15:09

Justin Ethier