Issue: version 3.X vs 4.2 | cells('').collapse()

issue: version 3.X vs 4.2 | cells(‘’).collapse()

When collapsing the last cell programmatically the previous cell automatically gets expanded. This is undesired and did not happen in 3.X versions. Is there a fast work around for this? See below.

version 3.X:
var layout = new layout(“3E”);
layout.cells(“b”).collapse();
layout.cells(“c”).collapse();

// output, cell “a” is only cell expanded

cell a


version 4.2:
var layout = new layout(“3E”);
layout.cells(“b”).collapse();
layout.cells(“c”).collapse(); // triggers expand of cell “b” for some reason.

// output, cell “a” AND cell “b” is expanded :frowning:

cell a

cell b

It is correct in 4+ version.
As you have such easy pattern - you can use accordion instead of layout to achieve such behavior.

Can more than one cell be open at a time on an Accordian?

Yes, off course.
You can try the next code sample:

[code]

DHTMLX test html,body { width: 100%; height: 100%; margin: 0; } [/code]