View Full Version : [OPEN] [UNKNOWN][3.0.0] ItemSelector: wrong selection behavior

16 Sep 2009, 9:41 PM
When moving the items from right to the left in the ItemSelector, wrong items are selected in the left pane.


This happens because of sorting. The selected indexes are retrieved before sorting

var selectionsArray = this.fromMultiselect.view.getSelectedIndexes();

Then, the sorting occurs. The received indexes become wrong. And this operation selects the wrong items:


It applies to other direction too if the sorting is defined.

16 Sep 2009, 10:20 PM
Please post a short set of instructions to reproduce the problem.

16 Sep 2009, 11:11 PM
Step 1
We go to the example

Step 2
We move the items Two, Three, Four from the left pane to the right pane. They remain correctly selected because they are appended to the end of the list.

Step 3
We move the items Two, Three, Four from the right pane to the left pane. These items are sorted in, but the last items

One Hundred Twenty three

are selected instead of the really moved items.

Because of sorting, the selection should occur based on the values and not based on the indexes.

16 Sep 2009, 11:35 PM
And one feature offer. I used a similar item selector. The buttons "move all to the right" and "move all to the left" might be also reasonable for doing these operations per one click.