100% width tables/grid how to trigger a re-render

Hi I have 100% width grid and I want to trigger a grid re-render whenever the browser width changes. On load the grid is 100% width of the space available but many people tend to make the browser wider and the only solution at the minute is to refresh the page.

I was hoping there was a command I could attach to a window.resize listener to trigger a re-render when the browser width changes.

You may try to use the following settings:

  1. set the width to a grid’s container in percentages:
  1. Set the widths of the columns in percentages:
    mygrid.setInitWidthsP(“30,30,40”)

To force the sizes of the grid you may call:
mygrid.setSizes()