Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Marco C. on Aug 14, 2008 09:20
open dhtmlx forum
selection on right click

Hi,
i would select an item or a row on a right click event.
How can i do?

Thanks
Answer posted by Support on Aug 15, 2008 01:54
In case of grid

grid.attachEvent("onRightClick",function(id,index){
    grid.selectRowById(id);
    return true;
})
Answer posted by Marco C. on Aug 18, 2008 02:24
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.

Answer posted by Support on Aug 18, 2008 04:44
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;
   }) ;