Hybrid View

Odd behavior with CheckBoxSelectionModel on Grid

I have built a very simple grid with checkbox and name columns. For some reason the checkboxes themselves seem like they are read-only. I have to click the actual row to get the box to populate. This removes the ability to use the header checkbox to select/deselect all.

Without a full runnable sample it is hard to say anything for certain, but my immediate guess is that you have duplicate or inconsistent keys in your model objects. Make sure that the props.key() is mapped to a value that is consistent and unique. GXT 3.0.3 or so and beyond enforce this with an assertion to make it harder to make that mistake.

Beyond that, what version are you using? Can you reproduce this with the http://www.sencha.com/examples/#Exam...e:checkboxgrid sample by changing the code to be more like yours? Can you share a full, runnable test case that lets us reproduce the issue to help you track it down?

a dead giveaway that you do not have unique keys (if you're using GXT < 3.0.3) is when you click one checkbox, multiple ones become checked.

i've never tried creating a checkbox grid with a nondeterministic ModelKeyProvider, but imagine the the nondeterministic behavior would carry over into the grid resulting in....um....more nondeterministic behavior.