...
To capture any action on the columns in the grid, such as click or double-click, you must define events in the Column Template.
Note |
---|
:You must define the events for the Column Template in the JavaScript file for your application. |
...
To capture actions through the Cell Click and Row Click events, use the event handler functions. For the Reference Number column, you need to capture the actions as follows:
Cell Click event
Code Block language js CWEH.registerHandler('BENE_WGT', CWEC.CELL_CLICK, function(columnId, value, record) { LOGGER.info('The CELL_CLICK click event is triggered', [columnId, value, record]); }); // Here, 'BENE_WGT' is the widget ID.
Row Click event
Code Block language js CWEH.registerHandler('BENE_WGT', CWEC.ROW_CLICK, function(columnId, record, value) { LOGGER.info('fired ROW_CLICK', [columnId, record, value]); }); // Here, 'BENE_WGT' is the widget ID.
...