Provides data for the cell related validation events.
Namespace: MindFusion.DataViews
File: EventArgs.js
JavaScript Copy Code |
---|
// class |
Events that use the CellValidateEventArgs class include cellFocused and cellFocusing of Grid.
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 }); }); |
MindFusion.Controls.CancelEventArgs
MindFusion.DataViews.CellValidateEventArgs