Handson table collapse is not working correctly for child columns

Tags: #<Tag:0x00007f8b19f03ec0>

Hi,

In my grid, I have parent and child columns. I have implemented collapsible functionality for parent and child columns. I am getting bellow issues:

https://jsfiddle.net/odb3cw19/1/

Initial Load:

image

1. When I am collapsing parent column all child column should be collapsed. It is not working and first child column is visible.

image

2. When I collapsed parent column & all child columns , and if I am expanding parent column then last child column is expanding automatically.

image

image

Please help me to fix this issues.

Thanks

Hey @fayejitendra
that is an intended behavior. Do you expect to get a blank space under E column?

I want everything should be collapsed . like below:

image

Also do you mean point 2 also expected behavior?

Thanks

The mentioned behavior could be changed but as this is a custom solution I do not have any pre-built examples.

When it comes to case 2 I would need to get a step-by-step scenario to replicate the issues as now I am trying to replicate the same and there is no similar result. Can you record it, please?

do we have some updates here @fayejitendra?

Hi, I am providing the screen shots and steps;

1: Initial Load

image

  1. Collapse E (Parent)

image

  1. Now Collapse child ‘I’

image

  1. Now expand Parent ‘E’, you will first child is collapse and second child (and other child if we have) will be expanded.

image

Thanks

Thank you for sharing the screenshots - that helped a lot.

The expanding doesn’t happen automatically. You would need to call the expandAll via expand hooks but the hooks aren’t available yet. The subject is mentioned here https://github.com/handsontable/handsontable/issues/6193 and it might get to the stable 8.0.0 version.

ok Thanks for sharing the information.

You’re welcome.

I guess that we can close the topic.