Cell modification after TreeGrid is loaded

Hi,

I load a TreeGrid which works well.
myGrid.load("somefile.php);

To do some cell modification I attached a callback function

myGrid.load("somefile.php, function() { // do some code alert(myGrid.getRowsNum()); });Unfortunately at the time when the file is loaded the number of rows is still zero. The TreeGrid expands after the function is executed. I tried the function later and it works well.

Is there an event which can trigger my function after the TreeGrid is expanded?
Something like

mygrid.attachEvent("onOpenEnd", function(id, m) { // do some code alert(myGrid.getRowsNum()); });not for a single node but for the whole TreeGrid?
If there is none, how to iterate through the whole TreeGrid?

try to use onOpenEnd event http://docs.dhtmlx.com/doku.php?id=dhtmlxtreegrid:event_onopenend
or achieve it by Iterating of rows http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:iterating#iterating_rows