View Full Version : [OPEN] [#335] Cell stays selected after clicking button

Aug 29, 2013, 9:04 PM
I can reproduce my issue using your CellEditing example: http://examples2.ext.net/#/GridPanel/Plugins/CellEditing/.

Click on a cell
Click 'Add Plant'
Click on a different cell from the one you clicked on first

Notice the first cell does not lose its selected style.
You can repeat the above and have many selected cells where only one should ever be selected.


Aug 30, 2013, 5:41 AM
Hi Ryan,

Thank you for the report.

However, I am not sure what to do. The CellSelectionModel looks unusable in that example since editing starts on single click. Maybe, we should just remove the CellSelectionModel from that example.

Do you need a CellSelectionModel in your scenario? If so, please clarify a use case.

Aug 30, 2013, 2:56 PM
Hi Daniil,
If you set ClicksToEdit="2" the issue is still there. The bug is that when a cell is selected, and then you press add plant, and then click on a different cell, the first cell should no longer be selected. I do need cell selection in my situation and I believe that when clicking on an unselected cell, any other cell on the entire grid that is selected should no longer be selected. Isn't that the way it is supposed to work?


Aug 30, 2013, 3:20 PM
Ok, I will investigate the issue in greater details.

For now, I can suggest to clear the selection manually when needed.

Aug 30, 2013, 6:53 PM
Can you show me how to clear it manually? selectionModel.deselectAll() does not work nor does deselect(record). The broken selections aren't members of selectionModel.getSelection() so the control doesn't even know that they are selected.

Sep 02, 2013, 6:49 AM
Definitely a bug. Reported to Sencha.

Created an Issue to track it.

This call appears to help clear fake selection.