catacaustic
12 Mar 2009, 4:33 PM
Tested and verified on IE7 and Firefox 3
I've implemented an EditorGrid in my system and I spent a long time wondering why the CheckBoxSelectionModel gave the following behaviour when selecting rows using the checkbox's:
1. Start with no selection.
2. Choose a selection using checkbox, normal behaviour.
3. Add another selection:
- On mouse down the selection is added.
- On mouse up the old selection is de-selected, leaving only the new selection
The selection model is set as Style.SelectionMode.MULTI so this should allow multiple selections.
When I change the grid from an EditorGrid to a standard Grid, the selection model behaves as expected and multiple selections work correctly.
I've implemented an EditorGrid in my system and I spent a long time wondering why the CheckBoxSelectionModel gave the following behaviour when selecting rows using the checkbox's:
1. Start with no selection.
2. Choose a selection using checkbox, normal behaviour.
3. Add another selection:
- On mouse down the selection is added.
- On mouse up the old selection is de-selected, leaving only the new selection
The selection model is set as Style.SelectionMode.MULTI so this should allow multiple selections.
When I change the grid from an EditorGrid to a standard Grid, the selection model behaves as expected and multiple selections work correctly.