SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onSelectionEnded  event

当通过拖动鼠标或键盘进行选择时,如果提交选择,就会触发这个事件。 

在选择过程中,将会先后触发onSelectionResizedonSelectionChanged事件。 

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
选择
多选
选取显示
合并单元格选择