Search
Grid.cellFocusing Event
See Also
 






Raised before a cell is focused.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher cellFocusing

 Event Data

The event handler method receives the following arguments:
sender
A Grid instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A CellEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The folloing code handles the cellFocusing event of a Grid instance:

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