Tree scroll to item

I am trying to implement “Search” functionality in Tree.
My tree contains over 200 items.
When “Search” is successful, I want to scroll to the found item.
I coded as below, but the scroll bar is not moving at all.


Anything else to try?

I am afraid this is not possible with Tree. You could try to use TreeTable and its setCurrentPageFirstItemIndex or setCurrentPageFirstItemId method.