Completed
Last Updated: 20 Sep 2016 06:36 by ADMIN
ADMIN
Dimitar
Created on: 05 Jul 2016 13:13
Category: VirtualGrid
Type: Bug Report
0
FIX. RadVirtualGrid - the selection changed event is fired multiple times when the left mouse button is held down
To reproduce:
- Subscribe to the SelectionChanged event.
- Move the mouse while holding the left button.
- The event is fire multiple times.

Workaround:
VirtualGridCellInfo prevCell = null;
private void OnGridSelectionChanged(object sender, EventArgs e)
{
    if (prevCell != gvItems.CurrentCell)
    {
        _selectionChangedCount++;
    
        tbLog.AppendText("Selection changed " + _selectionChangedCount + "\r\n");
    }
    prevCell = gvItems.CurrentCell;
}
0 comments