[OPEN] [#335] Cell stays selected after clicking button

  1. #1

    [OPEN] [#335] Cell stays selected after clicking button

    I can reproduce my issue using your CellEditing example: https://examples2.ext.net/#/GridPane...s/CellEditing/.

    1. Click on a cell
    2. Click 'Add Plant'
    3. 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.

    Last edited by Daniil; Sep 02, 2013 at 6:50 AM. Reason: [OPEN] [#335]
  2. #2
    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.
  3. #3
    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?

  4. #4
    Ok, I will investigate the issue in greater details.

    For now, I can suggest to clear the selection manually when needed.
  5. #5
    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.
  6. #6
    Definitely a bug. Reported to Sencha.

    Created an Issue to track it.

    This call appears to help clear fake selection.

Similar Threads

  1. Replies: 8
    Last Post: Dec 19, 2014, 11:54 PM
  2. Replies: 2
    Last Post: Mar 27, 2013, 5:54 AM
  3. Replies: 0
    Last Post: Apr 07, 2011, 9:48 PM
  4. [CLOSED] avoiding the user from clicking the button more than once
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 20
    Last Post: Nov 08, 2010, 7:42 AM
  5. Replies: 0
    Last Post: Apr 07, 2009, 9:57 AM

Tags for this Thread

Posting Permissions