PDA

View Full Version : [DUPE-953]RowSelectionModel: event "selectionchange" is fired for every selected line



sergei.stolyarov
18 May 2010, 12:26 AM
When I select lines using SHIFT key RowSelectionModel fires event "selectionchange" for any line in the resulting range. So when I'm selecting many lines my event handler is called many times and could cause a slow.


When I select lines using CTRL key just one event is fired on selection change.

Jamie Avins
18 May 2010, 8:27 AM
Dupe: http://www.extjs.com/forum/showthread.php?99042-OPEN-953-Selectionchange-event-fires-incorrectly-on-column-sort

sergei.stolyarov
11 Oct 2010, 11:19 PM
Reopen (possibly). On 3.3.0 selectionchange is still called for every line in the selection.

For example. If I select 10 rows using SHIFT key, selectionchange will be called 10 times. And if after that I add 5 additional lines to the selection (using SHIFT key again) selectionchange will be called 15 times! For every row in selection.