title: struts2 jquery grid plugin: set width dynamically
body: <p>I'm using the struts2 jquery grid pluggin with </p>
  
  <pre><code>    &lt;@sjg.grid
      ...
      id="mygrid"
      shrinkToFit="true"
      resizable="true"
      shrinkToFit="true"
      width= "1000"
      ...
  </code></pre>
  
  <p>This display a table within a division (i.e div="foo") on my page. The "foo" division is fluid changes with screen resolution. What I need to do is to dynamically update the width of the grid to the size of the foo division. i.e.:</p>
  
  <pre><code>$(document).ready(function() {
      var foo_width = $("#foo").width();
      // dynamically update mygrid width to foo_width
  }
  </code></pre>
  
  <p>Any idea? 
  Thanks for your help</p>