Search
Grid.rowDeleted Event
See Also
 






Raised when a row is deleted.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher rowDeleted

 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 RowModifiedEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code uses the oldValues property of the RowModifiedEVentArgs object to get the value of the id column from the deleted row.

JavaScript  Copy Code

var dv = MindFusion.DataViews;

grid.rowDeleted.addEventListener(onRowDeleted);

function onRowDeleted(sender, args)
{
    var itemId = args.oldValues.get("_id");
    //do something
}

 See Also