Passing reference to the TreeGrid object to the function cal

Is there a way to pass tree grid object to the function called setOnLoadingStart handler? What we trying to do is to set the spinner image in the tree column to tell user the grid is fetching more data from the server.



Thanks,

Inside all event handlers of TreeGrid you can use “this” as pointer to grid

grid.setOnLoadingStart(function(){
    this.addRow(…  // this == grid
});