Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bob Palin on Jan 15, 2009 19:41
open dhtmlx forum
Destroying layuots

I have a nested layout scheme and want to destroy the child layout in a parent cell to replace it with something else - what is the proper/clean way to destroy a layout?
Answer posted by Support on Jan 16, 2009 05:04
There is no any kind of method for correct layout's desctuction.
You can do the following:
(for example cell "a" containt layout you want to destroy)
dhxLayout.cells("a").layout = null;
dhxLayout.cells("a").attachObject(...); // just attach another object/component