Is there a way with dhtmlxFolders to scroll an item into view?
I understand how to select the item i need:
myFolders.selectItem(id_of_item, false, false);
Just want to see it if it’s not in view
Is there a way with dhtmlxFolders to scroll an item into view?
I understand how to select the item i need:
myFolders.selectItem(id_of_item, false, false);
Just want to see it if it’s not in view
There isn’t public method to show a certain item. But you may try to do the following:
myFolders.selectItem(id_of_item, false, false);
myFolders.cont.scrollLeft = myFolders.getItem((id_of_item).item.offsetLeft;
myFolders.cont.scrollTop = myFolders.getItem((id_of_item).item.offsetTop;
Awesome, works well