title: jqGrid Resizing Problem
body: <p>I have a jqGrid at my web page. I have a resizing problem. When I restore down my web page, all the elements at my page resizes automatically however my jqGrid table doesn't. Actually I have edited my table's width as follows:</p>
  
  <pre><code>...
  width:1000,
  ...
  </code></pre>
  
  <p>I want it has a minimum width but have a automatic resizing when I restore down (get more smaller) my web page. </p>
  
  <p>How can I do that?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried thatbut I am not sure is this the right way:
  <code>confTable</code> is my jqGrid id and <code>content</code> is the parent element's id of it.</p>
  
  <pre><code>$("#confTable").jqGrid('gridResize', { minWidth: 800, minHeight: 100 });
  $(window).bind('resize', function() {
                  var gridWidth = $("#confTable").width();
                  var contentWidth = $("#content").width();                    
                  if (gridWidth &gt; 0 &amp;&amp;                      
                          Math.abs(gridWidth - contentWidth) &gt; 5) {
                      $("#confTable").jqGrid('setGridWidth', contentWidth);
                  }
  
   }).trigger('resize');
  </code></pre>
  
  <p>I wanted to implement the solution <a href="https://stackoverflow.com/questions/875225/resize-jqgrid-when-browser-is-resized">here</a> described. However setgridWidht and the lines of .attr() didn't work. Is my code browser compatible and what is the wrong can be while I was trying the implement the solution of that question?</p>
  
  <p><strong>PS:</strong></p>
  
  <p>It says: $("#confTable").setGridWidth is not a function. Actually I need to resize my jqGrid according to its parent's parent.</p>