Detach Toolbar

How do I detach a toolbar from a layout panel that was added via .attachToolbar();


Hello,


there is no API to do that. But you can try to use the following approach basing on internal properties:


dhxLayout.cells(“a”).window._content.childNodes[1].innerHTML = “”;
dhxLayout.cells(“a”).toolbar = null;
dhxLayout.cells(“a”).window._content.childNodes[2].style.top = 0 + “px”;


Where “a” is cell id.