2

I already have a table - CellTable, with single selection model and i used onSelectionChange to find when row was clicked

Next I added to that column which containes check box and here comes my problem

if i use single selection model, when i tick one row, other row become unticked

i tried to switch to multiselection model, but in this case, i can't click on row, and onSelectionChanges is executed only when i click on my check box, but i can tick more than one box

is any chance how i can have both - multiselection and clickable row? regards

user902383
  • 8,420
  • 8
  • 43
  • 63
  • A duplicate of http://stackoverflow.com/questions/5637598/gwt-celltable-with-checkbox-selection-and-on-row-click-event ? – pillingworth Sep 21 '11 at 14:55

1 Answers1

0

Yes it is possible.
But I am suprised that it doesn't work because the default behavior of the MultiSelectionModel should be that the row is selected as soon as you click it. However maybe in the presence of a CheckBoxCell column it is different.

Anyways you have to check following JavaDocs:

Ümit
  • 17,379
  • 7
  • 55
  • 74
  • i needed to have option of selection row, and perform action if row was clicked. I solve this by multiselect for row selection and CellPreviewEvent. Works fine to me:) – user902383 Oct 17 '11 at 15:09