This demo demonstrates the problems with collapsing and expanding cells that exist in a row or
column of three or more cells. According to the
documentation, if the user attempts to collapse the last expanded cell in a row or column of cells
within a layout, another cell (one next to the one being collapsed) will be expanded, ensuring that at least one cell is expanded at all times. This implies that if the user is not attempting to collapse
the last expanded cell in a row or column, all other collapsed cells will remain in their collapsed states. However, in DHTMLX 4.0, the last two cells in a row or column (the two bottom-most in a column,
or the two right-most in a row) containing three or more cells are contained within the same inner 2E (for columns) or 2U (for rows) layout; this causes them to exhibit the described behavior without
regard to the state of the other cells in the same row or column. To see this behavior, attempt to collapse the middle and bottom cells in the layout below, while leaving the top cell expanded. The layout
will not permit you to collapse both the middle and bottom cells at the same time; the collapsed cell will automatically expand.
You can expand and collapse me all day long, the other two cells don't care what happens to me.
I'm part of an inner 2E layout with the cell below me. Only one of us can be collapsed at a time, even if the top cell is expanded.
I'm part of an inner 2E layout with the cell above me. Only one of us can be collapsed at a time, even if the top cell is expanded.