Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 19, 2007 14:49
open dhtmlx forum
Passing reference to the TreeGrid object to the function call by setOnLoadingStart Event.

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,
Answer posted on Nov 20, 2007 04:16
Inside all event handlers of TreeGrid you can use "this" as pointer to grid

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