Initializes a new instance of the CellValidateEventArgs class.
Namespace: MindFusion.DataViews
File: EventArgs.js
JavaScript Copy Code |
---|
function CellValidateEventArgs (row, column) |
Number. The row index of the cell.
Number. The column index of the cell.
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 }); }); |