Search
CellValidateEventArgs Class
Remarks See Also
 






Provides data for the cell related validation events.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

// class
CellValidateEventArgs.prototype = {}

 Remarks

Events that use the CellValidateEventArgs class include cellFocused and cellFocusing of Grid.

 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 });
});

 Inheritance Hierarchy

MindFusion.Controls.CancelEventArgs
    MindFusion.DataViews.CellValidateEventArgs

 See Also