Live update and child grid

I have two grids: ScheduleGrid and TotalGrid. ScheduleGrid is editable and TotalGrid is not. TotalGrid just groups people and sums up values. When ScheduleGrid is edited, TotalGrid is updated via onAfterUpdate call from the DataProcessor.

I am trying to implement Live Update. I have it working on the ScheduleGrid. So, when ScheduleGrid is updated, TotalGrid is updated also on the machine the did the edit. On other machines, ScheduleGrid is updated via Live Update, but how do I make a call to update/reload the TotalGrid on the other machines (ie the machines that didn’t do the original edit)?

I got the other grid to update by adding (simplified code below):

dhtmlXGridObject.prototype.update = function(id, data) {

totalgrid.clearAll();
totalgrid.load("php/total2.php");

};

But now the parent grid does not update. Any way to have both?

Update for those who care. Got both grids updated by using following code:

var liveUpdate = dhtmlXGridObject.prototype.update;

dhtmlXGridObject.prototype.update = function(id, data) {

liveUpdate.apply(this, [id, data]);
         totalgrid.clearAll();
         totalgrid.load("php/total2.php");

};

Maybe above code is obvious to most, but not novices like me. Hopefully this helps someone else out since it took me a few hours to figure out…