Check grids loaded

Is there a way to check if some grids are already loaded? I have 3 grids and I want to trigger some events after all three grids gets loaded.

Thanks in advance.-

“onFullSync” for every grid.

Something like next can be used

[code]var counter = 3;
function onload(){
counter–;
if (!counter) run_my_code();
};

grid1.attachEvent(“onXLE”, onload);
grid2.attachEvent(“onXLE”, onload);
grid3.attachEvent(“onXLE”, onload);[/code]