Occurs when the user clicks anywhere in a DataWindow control.
Applies to
Web DataWindow client control
Arguments
Argument |
Description |
sender |
String. Identifier for the client-side control. |
row |
Number. The number of the row the user clicked. |
objectName |
String. The name of the control within the DataWindow under the pointer when the user clicked. |
Return codes
Set the return code to affect the outcome of the event:
- 0 — continue processing.
- 1 — prevent the focus from changing.
Usage
When the user clicks on a DataWindow button, the Clicked event occurs before the ButtonClicking event. When the user clicks anywhere else, the Clicked event occurs when the mouse button is released.
Note: The server-side event that posts back to the Clicked client-side event can be triggered by these default event handlers: PBDataWindow_Clicked and PBDataWindow_DelayedClicked.
Examples
This script in an
.aspx file submits the value of the selected row in the DataWindow to the server:
function objdwCustomers_Clicked(sender, rowNumber, objectName) {
document.Form1.rownum.value = rowNumber;
document.Form1.submit();
}