cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 tree table how to retain selection of nodes after collapse and expanded

Viswanath
Participant
0 Kudos

Hi All,

In sap.ui.table.treeTable control, when I select child nodes and collapse corresponding parent node and expand it again it will lost all the selections which I did before for child nodes.

Before collapse

After collapse and expand I will lost the selection

could anyone please help me in resolving this issue

Thanks,

Best Regards,

Viswanath

Accepted Solutions (0)

Answers (6)

Answers (6)

mhameister
Discoverer

Hi,

try to set property collapseRecursive="false" in the XML file. (See here: https://experience.sap.com/fiori-design-web/tree-table/)

Had the same issue and setting this property in Google Chrome worked for me, but not for IE11. Is there any chance that this property will be supported from IE?

I also had the filter issue and solved it via JavaScript and a temporary array with the selected paths (nodes) ...

Facing the same issue, any expert could shed some light on this?

It also deselects what I had selected after filtering...

Thanks!

0 Kudos

May be "setCollapseRecursive" can help you.

in View :- collapseRecursive="true"

Please try it once.

0 Kudos

HI Vikash and Viswanth,

sap.ui.table.TreeTable API doesn't support this feature whereas you can customize using getSelectedIndices, setSelectedIndices methods and toggleOpenState event handler which will trigger on expand and collapse.

Thanks,

Kumar Karanam

former_member225463
Participant
0 Kudos

Hello michael.hameister and viswanathgolakoti

Can you please share how you retain the selection during live search / search in the tree table please? For me the selection is going off when doing live search

Thanks,

Vikash

FedericoB
Explorer
0 Kudos

Hi!

Could you solve it? I have the same problem!

Thnks