title: How to show only first line of a multi-line text cell in a jqgrid?
body: <p>I have a jqgrid as shown:<a href="https://i.stack.imgur.com/UPqQs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UPqQs.png" alt="enter image description here"></a></p>
  
  <p>As you see, rows can have multi-line text or just a single line. However, I only want the first line to be displayed on each row with a downward pointed arrow if it has multi-line text.The grid is non-editable.</p>
  
  <p>Moreover , the data to populate this grid comes as a <code>json</code> string from the controller. Currently, I have set the grid parameters as:</p>
  
  <pre><code>datatype: 'jsonstring',
  datastr: jsonErrorGridData,
  rowNum: '',
  gridview: true,
  onSelectRow: function (row_id) {
          $("#errorList-grid").toggleSubGridRow(row_id);
      }
  </code></pre>
  
  <p>This gives me a grid with all rows (<code>rowNum: ''</code>), which in cases can be more than 1000. Additionally, how can I implement paging on client side and also include an option to download all the gird data?
  Also, as you can see the column headers are not aligned properly. I display this grid as a pop-up dialog in a div:</p>
  
  <pre><code>&lt;div id="displayError"&gt;
      &lt;table id="errorList-grid" style="table-layout: fixed"&gt;&lt;/table&gt;
  &lt;/div&gt;
  </code></pre>