How can we still show the header text?

Hello.
How can we still show the header text in dhtmlxLayout even if the header has been collapsed?

Hello,

you can use setCollapsedText method:

layout.setCollapsedText(cellId,text);

everything works, thanks! :wink:

I’m trying to use this method, but it isn’t working…

I think you need to use new version of dhtmlxLayout.

This is what I got from “readme.txt”:

dhtmlxLayout v.2.5 Standard edition build 91111

Is this the problem?

I have the same version.
My source code:


dhxLayout = new dhtmlXLayoutObject(“layoutContainer”, pattern);
dhxLayout.cells(“a”).setText(“Caption”);
dhxLayout.setCollapsedText(“a”, “Collapsed caption”);

My sample source code:

[code]

test dhtmlx
[/code]

And it’s not working…

Jack,

try using attached file. It is the latest layout version.
dhtmlxlayout.zip (17.3 KB)

Thank you, Alexandra!

Now it’s working.

Also, thank you pashtet for your time.