Search
RowModifyingEventArgs.oldValues Property
See Also
 






Gets a dictionary of the original field name/value pairs.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

get oldValues() {}

 Property Value

Map. The dictionary of the original field name/value pairs.

 Example

The following code handles the rowDeleting event of a Grid instance. The event handler gets the id of the element to be deleted and, if it is bigger than 10, cancels the event.

JavaScript  Copy Code

grid.rowDeleting.addEventListener(onRowDeleting);

function onRowDeleting(sender, args)
{
    var itemId = args.oldValues.get("_id");
   
    if(itemId > 10)
      args.cancel = true;  
}

 See Also