title: jqGrid—setGridWidth function
body: <p>I'm trying to call jqGrid's setGridWidth function, but I'm getting the error:</p>
  
  <blockquote>
    <p>Object [object Object] has no method 'setGridWidth'</p>
  </blockquote>
  
  <p>I'm sure this is something stupid.  Here's the code to display the grid (which is fine) and then try to resize it.</p>
  
  <pre><code>    $("#jqGridElement").jqGrid({
          datastr: tableSrc,
          jsonReader: { repeatitems: false },
          datatype: "jsonstring",
          colNames: ['title', 'subtitle'],
          colModel: [
              { name: 'title', index: 'title', width: 55 },
              { name: 'subtitle', index: 'subtitle'}],
          height: 'auto',
  
          gridview: true
      });
  
      $("#jqGridElement").setGridWidth(600);'
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I've also tried:</p>
  
  <pre><code>var gridObj = $("#jqGridElement").jqGrid({  datastr: tableSrc, .......
  gridObj.setGridWidth(300);
  </code></pre>
  
  <p>Same result</p>