SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onSelectionResized  event

It will be fired during changing the selection area by mouse dragging. 

After committing the selection, onSelectionEnded event will be fired. 

function onSelectionResized (grid: GridBase, selection: SelectionItem);
Returns
Void
Parameters
grid - GridBase.
selection - SelectionItem.
Code -1
    grid.onSelectionResized = function (grid, selection) {
        // Move the focus cell to the last cell among selection area
        grid.setFocusedIndex(selection.getBounds().lastCell());
    };
See Also
onSelectionEnded
onSelectionChanged
Examples
Selection
Multiple Selection
Selection Display
Merged Cell Selection