Tree scroll to selected item

I’m opening and selecting items on a tree dynamically. Is there a way to automatically scroll to the selected item on a tree?

Hello,

You can use the showItem or showItemByIndex method:
http://webix.com/snippet/808b256e

Also, it’s possible with the scrollTo method:
https://snippet.webix.com/4927a557

The showItem method worked, thank you!

For:

view:"tree",

Print error:

var target = this.getIndexById(50);
this.showItemByIndex(target);

Search element and opened tree:

// search and show element
tree.filter(function(obj){  
    return obj.id == ID_ELEMENT
});
// open also elements
tree.filter("#value#", " ");