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: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!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.
Regards,
Manuel
-- 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: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!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.
Regards,
Manuel
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment