Raised when a cell is focused.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
EventDispatcher cellFocused |
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.
The following code handles the cellFocused event of a Grid instance:
JavaScript Copy Code |
---|
grid.cellFocused.addEventListener((sender, args) => { var value = sender.effectiveModel.value(args.row, args.column); showData("cellFocused", args.row, { cellValue: value }) }); |