-
21 Dec 2011 9:05 AM #1
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
This don´t work, throws an exception - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.Code:if (list.getSelectionModel().getSelectedItem() != null) {list.getSelectionModel().deselect(list.getSelectionModel().getSelectedItem());}
Does anyone have a solution to this problem?
Sorry for my english.
-
3 Jan 2012 3:14 AM #2
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
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote