Alex Rivera | Logout

Wrapping Text lines in JqGrid

Asked 2009-11-13T15:47:34.560
55

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

Edit
Report

1 Answer

4

I had this issue for the headers and found I needed all this to get it to also fix it in IE. Note this is for the headers, not cells. The problem with this is it probably effects more than you might want(as I'm sure I'll discover later) but you can always refine the css selectors and/or make them reference the specific #tableIdName or some class so that you can opt-in as you please.

.ui-jqgrid .ui-jqgrid-htable th div {
overflow: visible !important;
height: auto !important;
}

.ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column {
  white-space: normal !important;  
}

.ui-jqgrid .ui-th-div-ie{
  white-space: normal !important;  
}
answered 2012-04-18T21:21:51.470

Your Answer