Clear layout not work

Hi,
i attach toolbar and grid into my layout and i wanna clear layout for load new data. I’m try to use —> myLayout.cells(“b”).detachObject(true); then grid was clear but toolbar not clear and can load my new data. How i can clear all of layout?

Best Regards.

Hi
What object are you going to attach there? Is it dhtmlx component?

i want to attach url

myLayout.cells(“b”).detachObject(true);
myLayout.cells(“b”).attachURL(“data.php”);

Toolbar is attached some another way than grid, so to detach grid you can use detachObject() method and to detach toolbar we have special detachToolbar() method

Thank you very much Darya, it’s work :smiley:

You are welcome!