I am trying to display total hours on rows and columns of the scheduler. The way I am doing this is by calculating totals and then using jQuery to display values on row and columns headers in OnAfterRender and after any update. This works fine until I scroll horizontally or vertically the value is reset (this happens after scrolling for some time not right away). It seems that after scrolling, the row/column headers are redrawn but I do not think that onBeforeResHeaderRender or onBeforeTimeHeaderRender are called. I thought about using onScoll but it only works with dynamicLoading.
Calculating the totals in onBeforeResHeaderRender doesn't help because when the scheduler is first being created the resources are loaded then events. Meaning that there are no events and the total is zero. So, even though values are displayed in onAfterRender, after scrolling the value would be reset.
My question is, what is the best event handler to place the totals display logic?