dataGrid.setSelectionEnabled(true)

91 views
Skip to first unread message

Michael Vogt

unread,
Dec 10, 2012, 2:45:06 PM12/10/12
to google-we...@googlegroups.com
Hello.

Unfortunately I already ran into the next feature of the DataGrid I seem to have problems to understand its usage: row selection by clicking in the first cell of the row (which right now is a simple TextCell, if that matters) 

Basically I have setup the selection support as it is shown in the custom datagrid in the showcase. There, the row selection is done by checkboxes. I would need to implement the selection by mouse. Some class names are added to a cell when I click on it, but multiple selection with shift or control key does not work.

In a comment in the showcase datagrid it says:
* This table will uses a checkbox column for selection. Alternatively,
* you can call dataGrid.setSelectionEnabled(true) to enable mouse

This call is nowhere to be found with GWT 2.5. So, what Do I need to do to get selection working?


Thanks,
Michael
Reply all
Reply to author
Forward
0 new messages