layout.setEffect("collapse", false) not working

I have the following code:

				lyoSearchHotels = new dhtmlXLayoutObject(document.body,"3T","dhx_skyblue");

				sbSearchHotels = lyoSearchHotels.attachStatusBar();

				lyoSearchHotels.cells("a").setHeight(50);

				lyoSearchHotels.cells("a").hideHeader();

				lyoSearchHotels.cells("b").setWidth(350);

				lyoSearchHotels.cells("b").fixSize(true,true);
				lyoSearchHotels.setEffect("collapse", false);

				lyoSearchHotels.setEffect("resize", false);

				lyoSearchHotels.cells("b").setText("Please enter search criteria");

This prevents resizing but does not stop the ability to collapse. Please can you tell me what I’m doing wrong.

Thanks

setEffect doesn’t block collapsing.

Try the following:

lyoSearchHotels.attachEvent(“onCollapse”,function(id){
if(id==“b”)
lyoSearchHotels.cells(“b”).expand();
});

Thanks for the alternative method Alexandra. Does the setEffect(‘collapse’) do anything at all? Ideally I just want to stop the < > arrows appearing. Is that possible?

Does the setEffect(‘collapse’) do anything at all?

Yes, it enables/disables collapse visual effect.

I just want to stop the < > arrows appearing.

You may use the following approach to hide arrow:

var cell = layout.cells(“a”);
cell.childNodes[0].childNodes[0].childNodes[4].style.display = “none”;

But I thought you said above that it does not stop collapse. I’m confused.

But I thought you said above that it does not stop collapse.

Yes, it doesn’t. Try to enable and disable “collapse” effect - and you will see the difference:

dhtmlx.com/docs/products/dht … fects.html