JQGrid Word wrap

While playing with jqGrid, I have no idea why word wrapping a line is so difficult to do. Here is a few steps to enable word wrapping in the cells.

  1. Open up ui.jqgrid.css
  2. Search for .ui-jqgrid tr.jqgrow td
  3. Change “white-space: pre;” to “white-space: normal;”

You are done! 😉

Ref: http://2centtech.blogspot.com/2009/12/jqgrid-header-and-cell-value-word-wrap.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s