gwt - I want my CheckboxCell to control the selected state of each row -
i've got celltable column rendered checkboxcell. want check boxes select rows.
the default behavior checkboxcell(false, false) tantalizingly close goal - selecting row checks checkbox, , de-selecting row unchecks checkbox. however, if click checkbox, unselects already-selected rows. worse, when uncheck checkbox, row not deselected. argh!
i'm looking @ coding own cell (or messing selectionmodel?), seems behavior google might have been trying for. i've tried every permutation of values in constructor, no avail. there simple override can add make dream... reality?
you know how can search 30 minutes, , 20 seconds after post question find answer?
well, turns out unleash power of checkboxcell, need pass handler equipped deal complexities of situation. try
setselectionmodel(selectionmodel, defaultselectioneventmanager.<t> createcheckboxmanager()); with multiselectionmodel selectionmodel - selectionmodel not enough!
Comments
Post a Comment