I have created the following fiddle for this
http://ift.tt/1uBrn4C
From extjs 5.0.1, using selectAll() on the selection model only seems to select some of the rows
There are two variations of this:
1) if mode = SIMPLE, almost all of the items are selected (in the example it selects 96 out of 100).
2) if mode = MULTI (as in the example) a varying number are selected
3) If using checkbox selection, the checkbox in the header does select all, but the button does not.
The "select all" button will select all of the fields and the select count shows that it isn't just visibility on the grid. (there are 100 items in the example).
Previous versions function correctly.
Note that in IE, it seems like it is trying to scroll the selection into view as the selection takes place (maybe doing so on Chrome too) and that contributes toward loosing the selection.
Also using manual select it seems that if an item is only partially displayed in the window, using multimode and ctrl-click,
5.0.1 with no selection, select say Fred 1 and 2 with ctrl, both select immedately, then scroll to a record outside of the first screen - you will need two clicks to ctrl select.
5.0.x the first click does not select the item, and the second click then brings it fully into the scroll window and allows the click.
The above seems to be an issue in ALL version of 5, but not in 4.2.
SelectionModel.selectAll() broken in 5.0.1.1255
Aucun commentaire:
Enregistrer un commentaire