Get all the loaded rows and then call 'beginEdit' method on these rows. The code below shows how to get all the loaded rows.
var tg = $('#tg');
$.map(tg.treegrid('getRoots'), function(root){
//...
var rows = tg.treegrid('getChildren', root.id);
$.map(rows, function(row){
//...
})
});