cancel
Showing results for 
Search instead for 
Did you mean: 

TreeByNestingTableColumn - handling a child's collapse

Former Member
0 Kudos

Hi,

I have a table with a TreeByNestingTableColumn row arrangement.

I'm doing some logic when a child is expanded, by implementing an event handler for the onLoadChildren event. However, I would also like to do some logic when a child is collapsed, and couldn't find a way to do it.

My use case is that I have a toolbar with buttons above the table, and these buttons change (disabled/enabled) according to selection on the table. When I'm doing a selection on some child entry and then collapse the child's parent, the selection automatically moves to the parent which collapsed. In this case, I would like to update the buttons accordingly.

How can I handle the collapsing event?

Thanks,

Hagay.

Accepted Solutions (0)

Answers (2)

Answers (2)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Hagay

Instead of event handling try to use calculated attributes for the purpose of enabling/disabling buttons. With the calculated attributes your buttons will be updated whenever any request coming to a server.

BR, Siarhei

Former Member
0 Kudos

As far as I know there is no server event triggered when a node is collapsed.

Armin