How do I properly refresh the grid whenresizing?

How do I properly refresh the grid when resizing the control?

  • The grid is in a DIV (nothing new there)
  • The div is resized by JavaScript based on how the browser window is resized.
  • Even though the div is resized (for example its made larger), the grid content does not automatically fill the grid.
  • I’m not looking for the columns to be resized, but just that the grid content would fill up the DIV as it is resized.

How is this done?

Thanks

Well don’t anybody fall over themselves trying to answer my question! :unamused:

You should set the widths of your columns in percentages:

mygrid.setInitWidthsP("50,50")

The sizes of your DIV should be defined in percentages too:

<div id="gridbox" style="width:50%; height:40%"></div>

And you need to add the following event:

window.onresize = mygrid.setSizes()