How can I replicate the same action in a treegrid.

I have 2 treegrid identical ( same elements).

Is possible traverse a tree and replicate the same action in the other tree.


What action exactly do you mean?

For example. If I have a 2 treegrid identical. If I pick a item in treegrid A, the treegrid B must locate the same item.


In this case you may try to use different events to catch all the actions that user make and duplicate them to other grid.

For example:

grid1.attachEvent("onRowSelect", function(id,ind){ var rowIndex=grid1.getRowIndex("id"); grid2.selectCell(rowIndex,ind); });

All events you can find here: