on 01-21-2010 8:24 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I know there is no server event triggered when a node is collapsed.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.