Skip to Content
0
Former Member
Jun 29, 2016 at 09:54 AM

SAPUI5 TreeTable -- Selection of Nodes

1857 Views

Hello everybody,

I am facing issues with my TreeTable control in SAPUI5.

I am currently developing an application to create accounts for Checkmarx. Before the account is created you need to select teams which are assigned to the account.

To do that I used a TreeTable control to display the hierarchy of the teams (as the TreeTable control also supports selecting the elements)

I attached a picture of the TreeTable.

Now my problem:

I need to select elements which are not visible at the moment. For example if I select the team "PI" I also want all sub-teams to be selected when "PI" is expanded. But somehow the TreeTable API only provides methods for selecting visible elements.

I also tried using the "toggleOpenState" event, but the code is executed before the sub-teams become visible... (so I face the same problem)

Something which is also peculiar is that the selection is gone once the nodes are collapsed and expanded again. I would like the nodes to remain selected even after collapsing and expanding them.

Does anybody have a solution for that??? Please let me know if you need further information.

Thank you very much in advance.

Daniel

Attachments

TreeTable.png (14.2 kB)