cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

collapseAll functionality in SAP UI5 TreeTable control

RiaNinan
Product and Topic Expert
Product and Topic Expert
0 Kudos
921

Hi,

We are using SAP UI5 TreeTable control. We have a requirement to collapse the whole tree recursively. For this we tried using collapseAll() but it fails giving the below js error:

B.collapseToLevel is not a function

The SAP UI5 version I'm using is 1.28.4

Has anybody tried something similar... ? I tried implementing the collapseAll functionality but not much success with it..


Thanks and Best Regards,

Ria

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ria,

Even i was having the same issue and i tried the method "expandToLevel(iLevel)" which accepts a integer value and the same works. If i had to collapse my treetable to parent node, i set iLevel = 0.

Hope this helps..

Cheers!

Ashwin.

Former Member
0 Kudos

Hi All

Here is an example to collapse all levels

JS Bin - Collaborative JavaScript Debugging

Thanks

-D