selection on right click

Hi,

i would select an item or a row on a right click event.

How can i do?



Thanks

In case of grid

grid.attachEvent(“onRightClick”,function(id,index){
grid.selectRowById(id);
return true;
})

Ok, with the tree it works fine.
But with the grid it doesn’t work.
I have the version 1.3 of the grid, perhaps the event “selectRowById” doesn’t exists in this release…or the event OnRightClick

Where can i find a documentation of the version 1.3 of the grid?

Thanks,

Marco C.

There is no online documentation for such version, but you check the original package of grid, it must contain documentation sub-folder with API reference.
In case of grid 1.3 the event may be set as
grid.setOnRightClick(function(id,index){
grid.setSelectedRow(id);
return true;
}) ;