Search
CellValidateEventArgs Constructor
See Also
 






Initializes a new instance of the CellValidateEventArgs class.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

function CellValidateEventArgs (row, column)

 Parameters

row

Number. The row index of the cell.

column

Number. The column index of the cell.

 Example

The folloing code handles the cellFocusing event of a Grid instance, which uses the CellValidateEventArgs class to provide data for the event:

JavaScript  Copy Code
grid.cellFocusing.addEventListener((sender, args) =>
{
    if (document.getElementById("cancelFocusing").checked)
    {
        args.cancel = true;
        return;
    }
    var value = sender.effectiveModel.value(args.row, args.column);
    showData("cellFocusing", args.row, { cellValue: value });
});

 See Also