Scroll end Event

Is there any event in webix treetable which fires when user scrolls to end of treetable. I want to load content dynamically in a treetable when User reaches at the end of current content.

Found a workaround:

var state = $$(dtable);

if(state._scrollTop + state._dtable_offset_height >= state._dtable_height) {

// Load data into table 

}

Let me know if you have anything better than this.

for datasets that have “onAfterScroll”… this is an example on datatable

onAfterScroll: function () {
var maxHeight = (this.count() * this.config.rowHeight) - this.getNode().scrollHeight;
var scrollState = this.getScrollState();
if (maxHeight === scrollState.y) {
console.log(‘Bottom reached!’);
}
}