$.udb(ds).off()
note
This article is about the off() function of the DataSourceContainer object.
$.udb(ds).off()
Removes a handler from an event set for a collection of data source objects.
Returns a UdbDsc object which is an array of UdbDataSource objects.
Syntax
$.udb( *ds* ).off( *eventType*, *handler*( *event* ) )
The optional ds is a data source selector.
The required eventType is a string that identifies the event to unbind. The possible values for the 'eventType' parameter are described in the Events reference section.
The required handler(event) is a function that identifies the entry to be removed. If omitted, all handlers of the given eventType are removed.
Example
const OnSelect = (event, r) => {
alert('Row: ' + r.index());
};
$.udb('EMP').on('rowselect', OnSelect);
$.udb('EMP').off('rowselect', OnSelect);
$.udb('EMP').off('rowselect');
$.udb('EMP').on('rowselect',
function(evt, options) {
//set new rowselect event
}
);