setHeight, setWidth and collapse

Hi!

I want set collapset cell in layout and if user open it, open with height or width I preset.
So, I set:
dhxLayout.cells(“c”).setHeight(200);
dhxLayout.cells(“c”).collapse();
But if internet speed is slow, I see cell “c” as opened and after that collapsed.

So I set:
dhxLayout.cells(“c”).collapse();
dhxLayout.cells(“c”).setHeight(200);
But in this case, when I open cell my heigth don’t work, and height set by default.

Can you correct this moment and set setHeight() after collapse().

Hi,

you may use setCollapsedText method. The details are here viewtopic.php?f=5&t=13208&p=38556#p38556

Hi!

How I can use setCollapsedText() for widht and height of layout cells?

Hi,

you may try set onExpand event handler and call setHeight method from it:

layout.attachEvent(“onExpand”,function(id){
layout.cells(“c”).setHeight(300);
});