resizing of grid when resizing browser window

Iurii Dziuban picture Iurii Dziuban · Jan 31, 2012 · Viewed 11.6k times · Source

I used a fill whole window example as a default. Tried to resize browser window: but area, that is used for grid is the same. Need to reload page so that it fits. How can I archive this without reloading page ?

Edited

Interesting fact that when I change order of columns grid is resized.

Answer

biofractal picture biofractal · Feb 27, 2013

This works fine for me. Maybe the resizeCanvas() function is a new feature in slick grid.

The code is CoffeeScript.

$(window).resize -> grid.resizeCanvas()