The same thing appear to the example from the official website. Here is the ur:
dhtmlx.com/docs/products/dht … eight.html
When click one item on the view, the scroll bar turn up to the top. How do I do to keep the scroll bar that position when I click any item?
You can try the next:
var x = 0, y = 0;
data.attachEvent("onItemClick",function(){
y = window.pageYOffset || document.documentElement.scrollTop;
x = window.pageXOffset || document.documentElement.scrollLeft;
});
data.attachEvent("onAfterRender",function(){
window.scrollTo(x,y);
});