Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Aaron on Jul 02, 2009 09:31
open dhtmlx forum
Is there a way to get Grid to recalculate it's width?

I was wondering if there was a way to trigger a grid to recheck it's width. I'm using a couple grids inside divs that can be resized by the user (without changing the window size. This doesn't seem to trigger the grids to retake 100% of the width. Supposing I have a callback on the div resize, is there a method on the grid I can call to get it to check it's size again?
Answer posted by Stanislav on Jul 03, 2009 15:06
You can call
            grid.setSizes()
to update sizing of grid
Beware that if initial size was defined in percents - grid will always preserve defined percent of parent size.