Search
RowModifyingEventArgs.action Property
See Also
 






Gets the row action, that triggered the event.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

get action() {}

 Property Value

RowAction. One of the RowAction enumeration values.

 Example

The following code handles the rowUpdating event of a Grid instance. The event handler checks if the action that triggered the event was "delete" and if so, cancels the action:

JavaScript  Copy Code

grid.rowUpdating.addEventListener(onRowUpdating);

function onRowUpdating(sender, args)
{
    if( args.action == dv.RowAction.Delete)
       args.cancel = true;
}

 See Also