Occurs when the user right-clicks anywhere in a DataWindow control.
Argument |
Description |
---|---|
sender |
String. Identifier for the client-side control. |
row |
Number. The number of the row the user right-clicked. |
objectName |
String. The name of the control within the DataWindow under the pointer when the user right-clicked. |
Web DataWindow client control
Set the return code to affect the outcome of the event:
0 Continue processing
1 Prevent the focus from changing
When the user right-clicks on a DataWindow button, the RButtonDown event occurs before the ButtonClicking event. When the user right-clicks anywhere else, the RButtonDown event occurs when the mouse button is released.
Postback calls to the RButtonDown server-side event The corresponding server-side event can be triggered by the following event handler: PBDataWindow_RButtonDown.
This script in an .aspx file submits the value of the selected row in the DataWindow to the server:
function objdwCustomers_RButtonDown(sender, rowNumber, objectName) { document.Form1.rownum.value = rowNumber; document.Form1.submit(); }