Selection by right-click : follow up

Hi,



In a previous answer, you gave the following piece of code as a way to select a row by right-clicking:



grid.attachEvent(“onRightClick”,function(id,index){

grid.selectRowById(id);

return true;

})



I am wondering how to manipulate this code so that it preserves other already selected rows since my grid allows multi-select.



Thanks!

Change
grid.selectRowById(id);
to the
grid.selectRowById(id,true);