DataGrid SelectionEvent thrown 2 times

Hi,

DataGrid with MULTI selection mode.

  1. Select 2 rows
  2. Select 1 of the 2 selected rows

SelectionEvent is sent 2 times (one time with removed, one time with selected).

I don’t understand why … Why does the event not contain removed AND selected rows ?

Best regards, Stef.

Hi,

This is known behaviour. Events come from underlying Vaadin component this way. Added and Removed items come in a single event in case you use Ctrl/Cmd + Click, otherwise you get several events.

Regards,
Gleb