Search
Grid.rowUpdating Event
See Also
 






Raised before a row is updated.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher rowUpdating

 Event Data

The event handler method receives the following arguments:
sender
A Grid instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A RowModifyingEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the rowUpdating event of a Grid instance. The event handler cancels the action, if the user is trying to delete the row:

JavaScript  Copy Code

grid.rowUpdating.addEventListener(onRowUpdating);

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

 See Also