creating a context menu in a grid
Posted: Wed Jul 11, 2012 10:36 am
Hello,
we created a context menu in a subfile grid. When the user right clicks on a row, the context menu appears. Now we have the problem to recognize on which row the user has clicked. Our idea is to create an java script which sets a variable to the number of the actual row: changeElementValue("sflrow",row); This java script hangs at the "onrowclick"-property of the grid. Is this the only way to do this? Our problem is that we "loose" the left-click event. We would like to give the user the option to left click on a row (this event shall show details) or to right-click on a row (this event shall show the context menu).
Is there a way to to this?
Dieter
we created a context menu in a subfile grid. When the user right clicks on a row, the context menu appears. Now we have the problem to recognize on which row the user has clicked. Our idea is to create an java script which sets a variable to the number of the actual row: changeElementValue("sflrow",row); This java script hangs at the "onrowclick"-property of the grid. Is this the only way to do this? Our problem is that we "loose" the left-click event. We would like to give the user the option to left click on a row (this event shall show details) or to right-click on a row (this event shall show the context menu).
Is there a way to to this?
Dieter