Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to restrict jqgrid textarea height in grid only
    primarykey
    data
    text
    <p>Textarea contains lot or lines. In jqgrid grid only first line should displayed. In jqgrid view window more lines and possible scrollbar also should be displayed.</p> <p>Oleg answer from <a href="https://stackoverflow.com/questions/6573784/how-to-restrict-maximum-height-of-row-in-jqgrid">How to restrict maximum height of row in jqgrid</a></p> <p>restricts textarea height in view window also to single line. How to show first line in grid only but show more lines in jqgrid view form ?</p> <p>colmodel is:</p> <pre><code>{"name":"Description", "edittype":"textarea", "wrap":"on", "formatter":function(v){ return '&lt;div style="max-height:20px"&gt;'+$.jgrid.htmlEncode(v)+'&lt;/div&gt;'; } ,"editoptions":{"class":"","rows":18,"wrap":"off","style":"width:800px", "readonly":"readonly" }, "editrules":{"edithidden":true},"editable":true,"width":539, "classes":"jqgrid-readonlycolumn"} </code></pre> <p>jqgrid view window shows multiple lines. This should remain the same:</p> <p><img src="https://i.stack.imgur.com/CcEe7.png" alt="Proper view window with multiple lines"></p> <p>grid shows also multiple lines. This is wrong.:</p> <p><img src="https://i.stack.imgur.com/iXk7W.png" alt="Grid with multiple lines in textarea"></p> <p>How to force grid to show only first line in each textarea</p> <p>Or is is possible to show more lines in bottom of screen: if some row becomes active, first 10 lines from textarea column should appear in bottom. This is like in windows log viewer: moving into event row shows event long data in separate window</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload