So I have a navigator view in my Struts jqGrid that I am using to just display information about the columns in the selected row. I have a column that holds the information for a comments textarea that can have too much information to be shown in the grid at any one time. I would like to use the navigator view to see the text in this column as a word-wrapped paragraph however there is no formatting options that I can find. Currently the text is in a single line and the user must use the horizontal scroll-bar to scroll through the text. Unfortunately the documentation is poor but I would assume that there would be an option that I can add to this line in my jqGrid:
navigatorViewOptions="{width:600,reloadAfterSubmit:false}"
Or have something similar to my editoptions on my gridColumn itself:
<sjg:gridColumn name="asiNotes" edittype="textarea" editoptions="{ maxlength: 500, rows:3,cols:70 }"/>
I have also tried $("#v_asiNotes").wrap
on the id in the view that needs to be word-wrapped with no avail.
Any ideas?
Solved it by using this solution by Oleg. I had to edit the CSS for the dialog window itself with this style:
div.ui-jqdialog-content td.form-view-data {
white-space: normal !important;
height: auto;
vertical-align: middle;
padding-top: 3px; padding-bottom: 3px
}