title: Wrapping GridView in a Panel linked to an AJAX Toolkit ResizableControlExtender
body: <p>I am trying to create a resizable GridView wrapped up as a server control.  I am using the  ResizableControlExtender from the AJAX Control Kit, which as far as I know requires that </p>
  
  <ul>
  <li>the control that is to be resized
  must reside inside a panel </li>
  <li>the    initial panel size
  must match the    initial target control
  size.</li>
  </ul>
  
  <p>I can do this happily in a test .aspx page with no issues by just putting my grid in the panel as normal.  When I run the page and view the source, I can see that the panel is rendered as a div that surrounds the grid.</p>
  
  <p>But, when I wrap it in a server control, the automatic sizing of the panel is not happening.  Instead, the rendered div for the panel has no height and witdh settings and is therefore somehow smaller than the grid.</p>
  
  <p>I think this is because I am not setting the minimum size of the extender and the extender is then setting the panel size to nothing. I am not setting the minimum size because I can't calculate the size of the grid before it is rendered (as it depends on the css).</p>
  
  <p>So, I am either using the extender incorrectly or I need to be able to calculate the height of the grid (which I believe is only possible in javascript?)</p>
  
  <p>I have hacked this with fixed sizes in the css but this is rubbish and breaks if resizing results in wrapping.</p>
  
  <p>Any ideas/tips/etc would be greatly appreciated.</p>