How can I scroll to end a TunimDBListGrid ?
function afterCreate(sender)
{
let scroller = sender.getScrollable();
if (scroller) {
scroller.on('scrollend', function(a, b, c) {
if (scroller.getMaxPosition().y == c) {
ajaxRequest(sender, 'getProducts', []); // get product list
scroller.scrollTo(0, 10000000, []); //it does nothing
}
})
}
}