on 03-21-2017 11:32 AM
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
Would like to know the same. Hope someone can give an answer. Did you find one?
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 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.