cancel
Showing results for 
Search instead for 
Did you mean: 

Expand event in sap.m.Tree

Former Member
0 Kudos

Hi Experts,

I am using sap.m.Tree in SAPUI5 for version 1.44.7.

And is there a trigger event when I click the expand arrow? I tried function, such as itemPress, selectionChange. It didn't work.

So I hope could find a event when I click the expend arrow(see pic).

Thank you so much.

BR,

Don

Accepted Solutions (0)

Answers (3)

Answers (3)

Nigel_James
Active Contributor

Did you look here?

https://sapui5.hana.ondemand.com/#/api/sap.m.Tree/events/toggleOpenState

Having the api docs open is the best helper (or at least a good start )

0 Kudos

Hello,

When I search for tree node, it is expanding till search node but not showing expand button even though searched tree node has children,

How to achieve this functionality?

Thanks,
RK

0 Kudos

Hi Nigel,

As suggested toggleOpenState event is available only from 1.50 version and expand or collapse events are available only from 1.56 version. Is there any event to cater this functionality in versions 1.42 onwards.

Any insights on this are very much appreciated.

Thanks

Imtiaz N

0 Kudos

Hello,

When I search for tree node, it is expanding till search node but not showing expand button even though searched tree node has children,

How to achieve this functionality?

Thanks,
RK

Nigel_James
Active Contributor
0 Kudos

Perhaps this would be better asked as a new question and include a screen shot of your outcome and what you have tried so far. Currently I don't have enough information to help you except to say this. If you can use any other table type other than tree - use that. It can be tricky to work with .

former_member193947
Participant
0 Kudos

Hello Don,

Did you get a solution for this ? I don't find any event's working for sap.m.tree control.

If you found any solution, can you please share the logic/code behind it ?

Thanks.