Raised when a row is selected.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
EventDispatcher rowSelected |
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 RowModifiedEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
The following code uses the rowSelected event of a Grid and the RowModifiedEVentArgs object to get the index of the selected row.
JavaScript Copy Code |
---|
var dv = MindFusion.DataViews; grid.rowSelected.addEventListener(onRowSelected); function onRowSelected(sender, args) |