Search
RowAction Enumeration
See Also
 






Specifies a row action.

Namespace: MindFusion.DataViews
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
RowAction = {}

 Members

  Member name Description

Command

Indicates that a row command is being executed.

Create

Indicates that a row is being created.

Delete

Indicates that a row is being deleted.

Render

Indicates that a row is being rendered.

Select

Indicates that a row is being selected.

Update

Indicates that a row is being updated.

 Remarks

The RowAction enumeration is used to provide data for events that use the RowModifiedEventArgs and RowModifyingEventArgs classes like rowCreated, rowCreating etc.

 Example

The following code handles the rowCreated event of 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