Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David Webb on Jul 02, 2009 09:56
open dhtmlx forum
dhtmlx layout undocking question

I was curious how I can resize the dhtmlx window that is created when undocking a cell in a dhtmlx layout?

I don't know how to reference the window so I can't figure out how to use the dhtmlx window api to do the resizing. I've tried using the setHeight and setWidth api commands for the cell in dhtmlx layout but it does nothing to the window once it is undocked...

also, is it possible to remove the dock button on the window once it is undocked? I have created my own function to perform the docking and some other things so I do not want the user to be able to just dock it using the button...

any help would be appreciated...

Thanks!
Answer posted by Alex (support) on Jul 06, 2009 01:14

Hello,

the window reference can be got by the following method:

var w =  dhxLayout.cells(itemId).window;

dhxLayout.attachEvent("onUnDock",function(id){

...

})

To hide "dock" buttons:

dhxLayout.forEachItem(function(item){

item.window.button("dock").hide();

}