[FIXED][2.x] Ext.grid.RowSelectionModel.selectRow called twice when click on row

I have GridPanel with enableDragDrop and Ext.grid.RowSelectionModel.

I want to store selection server-side. I need to override Ext.grid.RowSelectionModel.selectRow to do some AJAX about selection change.

Problem:
My grid calls selectRow twice on single click into row on FF, Opera and Safari. On IE it is called only once.

Solution:
Ext.grid.RowSelectionModel.initEvents defines rowclick event handler. This causes redundant second call to selectRow. The first call to selectRow was previously done in Ext.grid.RowSelectionModel.handleMouseDown (and I hope this is right place where to handle selections).

Maybe this rowclick event is there for some good reason, but in my case it causes troubles and I don't want to clutter my code with detections of redundant selectRow calls. I've just commented it out.

Same problem

If a grid is drag and drop enabled, the following 3 functions get called twice:
beforerowselect
rowselect
selectionchange

The reason for this is that the internal DragSource component that gets added to the Grid, calls the selectRow function on the RowSelectionModel component via its handleMouseDown event. The selectRow function gets called again from within the RowSelectionModel

This works for me, I use modified RowSelectionModel:
1. commented out rowclick event handler
2. sanitized "up" to do nothing when lastActive is 0 (active carret is on the first row and there is no room to move up)
3. sanitize "down" to do nothing when lastActive is on last grid row

Changes 2 and 3 are probably not important for you, because selectRow handles this situation and does nothing. I just needed to have clean calls to selectRange for my server notifications.