Search
RowModifyingEventArgs.newValues Property
See Also
 






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

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

get newValues() {}

 Property Value

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

 Example

The following code handles the rowUpdating event of a Grid instance. The event handler gets the id of the element that was updated and, if it is bigger than 10, cancels the event.

JavaScript  Copy Code

grid.rowUpdating.addEventListener(onRowUpdating);

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

 See Also