Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jennifer on Sep 12, 2008 08:38
open dhtmlx forum
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!
Answer posted by Support on Sep 12, 2008 10:19
Change
grid.selectRowById(id);
to the 
grid.selectRowById(id,true);