Resizing a page without a grid calls setInitWidths

I am using dhtmlxgrid on my web page. Under certain conditions, I delete the grid and place something else in the div that contained the grid.
Now when I resize the page, setSizes<setInitWidths runs and resizes the div to a very small area.

Is there a way to cleanly delete a grid so that functions related to the grid don’t continue to run?


try to use destructor() method.

Have a look at the following tutorial:

That’s exactly what I was looking for.