Skip to Content

TreeTable.Expand Event after expanding?

Mar 21, 2017 at 11:32 AM


avatar image
Former Member


We haven TreeTable with binding to an OData Entity.

When expanding a node, a request to Backend is send, to receive the subchilds.

i want to expand my nodes programmatically via

var tree = sap.ui.getCore().byId("__component0---App--TreeTableBasic");

but the backend request is sent asynchronously and maybe i have to expand again a subnode of the received nodes.

is there a event i can react after the expanding was finished?

1. i tried the: toggleOpenState - Event.


A. it's not triggered by tree.expand. only triggered when you user expand via click.

B. it's triggered before the expansion is finished. in the event i can't expand a new subnode because the tree is not knowing the new items in this moment.

2. i tried

var binding = tree.getBinding("rows");

Its called, but also to early. the tree is not informed about the new items => i can't expand the new subitems.

Hope someone could give me a Hint.

Kind Regards


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers