Skip to main content

This article is about the renderrow UDB event handler.

renderrow

The renderrow event may be called from web pages developed in Web Designer and processed by a USoft page engine service.

Event Applies to Occurs when
renderrow
Multi-record UI controls After the GUI realisation of the HTML for the row has been completed

This event applies to multi-record UI controls only. For single-record UI controls, use the afterrender event instead.

How to use

Find or create an Event Listener object with Event Type = renderrow. Event Listeners are in the Web Designer Controls catalog:

Insert the event listener into the Page object. Insert a callClientScript action into the event listener. Use this action's Script property to code the behaviour that you want to see when the event occurs.

Sometimes you need to know the corresponding data row for the rendered row. 

You can find the corresponding data row in the following way within the client script under a renderrow event:

```
var row = $(event.target).closest(''rowid]')
var rowid = row.attr('rowid');
var dataRow = $.udb(<your datasource>).rows('id', rowid);

```

You can use this if you want to enable or disable a button on the row depending on a value of a column in the row.


Reply