Feb 14, 2013, 2:33 PM
Selectionchange event of selectionModel not fires on paging
Hi,
I noticed, that selectionchange event of checkboxselectionmodel does not fire on paging, even though GridPanel.selModel.selections JS object changes.
To reproduce error, use https://examples1.ext.net/#/GridPane...box_Selection/ and insert listener:
2. go to next page (event fires, because selMode.selections object has changed),
3 go back to first page - I expect event to fire, because I have som selected rows again on screen, but nothing happens
After each step check console - it shows selected rows. You will see how it changes.
I noticed, that selectionchange event of checkboxselectionmodel does not fire on paging, even though GridPanel.selModel.selections JS object changes.
To reproduce error, use https://examples1.ext.net/#/GridPane...box_Selection/ and insert listener:
<SelectionModel>
<ext:CheckboxSelectionModel runat="server">
<Listeners>
<SelectionChange Handler="console.log(#{GridPanel1}.selModel.selections)" />
</Listeners>
</ext:CheckboxSelectionModel>
</SelectionModel>
1. check a few rows on first page (event fires a few times),2. go to next page (event fires, because selMode.selections object has changed),
3 go back to first page - I expect event to fire, because I have som selected rows again on screen, but nothing happens
After each step check console - it shows selected rows. You will see how it changes.