PDA

View Full Version : [DUPE-953] selectionchange fires every time selectRow is called



AndreKR
16 May 2010, 4:07 PM
Ext version tested:


Ext 3.2.1



Adapter used:


ext



css used:


only default ext-all.css



Browser versions tested against:


FF3 (firebug 1.5.4 installed)



Operating System:


WinXP Pro



Description:


The selectionchanged event of RowSelectionModel fires when selectRow() is called, even though the selection did not really change



Test Case:
See this URL : http://kundenweb.creations.de/usenet/ext_layout/ext_sandbox3.htm


Steps to reproduce the problem:


Click a grid row multiple times, watch the log
Click the button multiple times, watch the log



The result that was expected:


When clicking for the first time, an event fires; the second time it does not



The result that occurs instead:


When clicking the row for the first time two events fire (that's not optimal but it is not what this report is about)
When clicking the row for the second time, no more events fire (that's good)
When clicking the button for the first and subsequent time, every time the two events fire

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