executes code for each row in the treegrid
myTreeGrid.forEachRow(function(id){ //your code here //id - row's id });