Expand event of dhxLayout

I am using dhxLayout and in some cases, on click of expand button I don’t want that cell to be expanded.

Can you please tell me how can I do that?

Thanks in advance.


you may set the onExpand event handler:

layout.attachEvent(" onExpand",function(cell_id){
if(…) layout.cells(cell_id).collapse();

:smiley: it worked!! By the way, intelligent answer :slight_smile: