cancel
Showing results for 
Search instead for 
Did you mean: 

TreeTable.Expand Event after expanding?

Former Member

Hello,

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");
tree.expand(0);

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.

But

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");
binding.attachDataReceived(this.TreeReceived);

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

Stefan

Accepted Solutions (0)

Answers (1)

Answers (1)

davidgbarbero
Participant
0 Kudos

Would like to know the same. Hope someone can give an answer. Did you find one?