Hello,
My name is Tudorel and I use very little time webix.
I have a html page with a html table that makes auto scroll with the code below.
function pageScroll() {
window.scrollBy(0, 1);
scrolldelay = setTimeout(pageScroll, 30);
}
body onLoad="pageScroll();"
//here is html table
//here is webix datatable
When I replaced html table with webix datatable, the code I have no longer works.
You know how I could do to get the same effect with datatable.
Thanks!
It works very well, but I have one more question. It is possible to know when it has completed scrolling because I want to reload the page exactly when scrollDown function is finished?
Thank you!
With your example I can’t calculate(predict) the exact value (will be) of last scroll position, to be able to reload the page immediately after it has finished scrolling.
I gotta calculate before the scroll get into position, in order to be able to compare with the real value and trigger reload.
Thank you!
As you know the initial value (0 on init, or you can use getScrollState() at any moment) and set your own scroll step, the last scroll position can be easily calculated.