For the data grid component, you can create event handlers at a
global level.
Note: Some Faces Client Components and Client
Data have been deprecated and are not recommended for use.
The following
have been deprecated and are not recommended for use:
- Client Data and its associated tooling (such as the Client Data view)
- Faces Client Components
- <odc:dataGrid> (Data Grid)
- <odc:webService> (Web Service)
- <odc:clientData>
- <odc:clientBinder>
In order to write
an event handler for the data grid, perform the following steps:
- In the Design view, click on the Data Grid to select it.
- Go to the Quick Edit View.
- In the left frame of the Quick Edit View, select the event for
which you want to write the handler. If you want an action
to occur when the user clicks a row in the Data Grid, use onhighlight.
If you have added a selection column to the Data Grid, use onselect/onunselect to
define actions for when the user selects or deselects the check box or radio
button.
- In the right frame, either select an out-of-box event handler using
the context menu, or enter in the JavaScriptâ„¢ to write a custom event
handler.
Note: For the Data Grid, the out-of-box event handlers
can only be used for the highlight, onselect,
and onunselect events, or basically only for events fired
on individual rows.