Selection is controlled by the selectionEventManager, which is is a CellPreviewEventHandler. Use the following to limit selection to checkboxes:
DefaultSelectionEventManager selectionEventManager = DefaultSelectionEventManager.createCheckboxManager(0); // Limit selection to checkboxes in column 0. cellTable.setSelectionModel(myMultiSelectionModel, selectionEventManager); Thanks, John LaBanca [email protected] On Tue, Feb 1, 2011 at 7:39 AM, Torgeir <[email protected]> wrote: > I have a CellTable with a MultiSelectionModel, and a selection checkbox in > the first column, just as the CellTree sample in the GWT ShowCase. I have a > problem in that when clicking on a cell in the table, eg a Cell of type > SafeHtmlCell, the row is selected. > > I have tries using a different Column instance, and a different Cell > instance, in order to avoid this selection, but nothing seems to work. Is > there a way to only allow row selection through selecting items in the > selection column? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
