Saturday, November 23, 2013

DataGrid with SingleSelection

Hi everyone,

I wonder whats the right setup for a list that can only have one line selected at a time.
I use a DataGrid with SingleSelection Model and setKeyboardSelectionPolicy.BOUND_TO_SELECTION.

But the behaviour isnt as excepted. For example:
I select a Header to change sorting. This causesthe keyboard selection change to line 0. This causes a selectionChangeEvent.
This can also be looked up in the showcase grid:!CwDataGrid.

I started to setKeyboardSelectionPolicy.DISABLED while handling onRangeChanged - Events and setKeyboardSelectionPolicy.ENABLED after Im done with it.
This works, but I wonder if this is the right way. How you guys implement a single-selection grid.


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment