SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onSelectionEnded  event

It will be fired if selection is committed when selecting by mouse dragging or keyboard. 

During the selection, onSelectionResized, onSelectionChanged events will be fired in order. 

function onSelectionEnded (grid: GridBase, selection: SelectionItem);
Returns
Void
Parameters
grid - GridBase.
selection - SelectionItem.
Code -1
    grid.onSelectionEnded = function (grid, selection) { 
        var bounds = selection.getBounds();
        console.log("Selection Ended: " + bounds.R1() + ' ~ ' + bounds.R2() + ' rows.');
    };
See Also
onSelectionResized
onSelectionChanged
SelectionItem
Examples
Selection
Multiple Selection
Selection Display
Merged Cell Selection