I am working with ExtJS6.2 I have a simple Ext.grid.Panel with
this.selModel = Ext.create('Ext.selection.CheckboxModel', {
checkOnly: true,
injectCheckbox: 1
});
I need the data from the grid in the same sequence like the data are shown in the grid.
If I select all items of the grid this works fine.
selection = grid.getView().getSelectionModel().getSelection();
Then I deselect one item in the grid - click the checkbox
Then the order of the selection is mixed up? How can I get the right order again?
Thanks in advance
You can achieve this behavior using the following override:
Also in my fiddle you can look at example and in the console I described how it all works in detail