Skip to main content
Version: 10.1

$.udb(ds).on()

note

This article is about the on() function of the DataSourceContainer object.

$.udb(ds).on()

Binds a handler to an event (in the same way as in the jQuery implementation).

Returns the 'this' object.

Syntax

$.udb( *ds* ).on( *eventType*, *data*, *handler*(*event*) )

The optional ds is a data source selector.

The required eventType is a string that identifies the event to bind to. The possible values for the 'eventType' parameter are described in the Events reference section.

The optional data is a key-value map that contains certain data options to be passed to the event as its events.data object.

The optional handler(event) is a function that identifies the entry to be removed.

Example

$.udb('EMP').on('rowselect', function(event, r) {
alert('Row: ' + r.index());
});