Search
Grid.rowDeleting Event
See Also
 






Raised before a row is deleted.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher rowDeleting

 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 rowDeleting event and cancels the action if the row is locked:

JavaScript  Copy Code

grid.rowDeleting.addEventListener(onRowUpdating);

function onRowUpdating(sender, args)
{
    args.cancel = args.rowData.locked;
}

 See Also