Need to open tree hierarchy on row select by ID

HI I am doing search operation for DHTMLXTreeGrid.

I would like to open tree hierarchy on select event, when system is selecting row by a code by using tree.selectRowById();

Same as that of dhtmlxTree.FIndNext() function.

let me know if u have any alternative to search value in DHTMLXTreeGrid so that system will open tree hierarchy. OR how to open tree hierarchy when row is bring selected.

Thanks,
Harshal

Something like next can be used

grid.attachEvent("onRowSelect", function(id){ var pid = grid.getParentId(id); if (pid) grid.openItem(pid); })