Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    nuno.ferreira is on a distinguished road

      0  

    Default deselect() in StoreSelectionModel don´t work

    deselect() in StoreSelectionModel don´t work


    Hello, i have this piece of code to deselect a selected item in grid

    Code:
    if (list.getSelectionModel().getSelectedItem() != null) {
    list.getSelectionModel().deselect(list.getSelectionModel().getSelectedItem());
    }
    This don´t work, throws an exception - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
    Does anyone have a solution to this problem?

    Sorry for my english.

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    nuno.ferreira is on a distinguished road

      0  

    Thumbs up deselect() in StoreSelectionModel don´t work - already works

    deselect() in StoreSelectionModel don´t work - already works


    Hi, the problem has discovered, the problem was at the event "OnSelectionChanged" that is triggered when selecting and deselecting an item. I have to validate if the list have elements on the event "OnSelectionChanged".

    Sorry for the mistake