Search
Grid.rowCreated Event
See Also
 






Raised when a new row is created.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher rowCreated

 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 handles the rowCreated event of a grid, where it uses the action property of RowModifiedEVentArgs to identify the RowAction:

JavaScript  Copy Code

var dv = MindFusion.DataViews;

grid.rowCreated.addEventListener(onRowCreated);

function onRowCreated(sender, args)
{
    if(args.action == dv.RowAction.Create)
    {
      //do something
    }
}

 See Also