Posted 25 July 2018, 12:45 am EST
Hi,
I have subscribed my FlexGrid to selectionChanged event as follows:
flexGrid.selectionChanged.addHandler((grid: FlexGrid, e: CellRangeEventArgs) =>
{
const range = e.range;
});
it works well when user selects only one cell/row or an uninterrupted range of cells/rows. But if a user selects cells with the help of “CTRL” key I only receive notification about last selected cell, no information about other selected cells/rows is present in the event.
For example, I can select cell (1,1). Then I’ll hold the CTRL key and select cell (5,1) - so will have two selected cells in total. In the onSelectionChanged event though I will only receive notification about cell (5,1), cell (1,1) will not be included into range.
How can I receive all the selected cells in FlexGrid?