Roo/grid/RowSelectionModel.js
authorAlan Knowles <alan@roojs.com>
Fri, 23 Jul 2021 06:05:51 +0000 (14:05 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 23 Jul 2021 06:05:51 +0000 (14:05 +0800)
Roo/grid/RowSelectionModel.js

index cf2bd3d..8a715df 100644 (file)
@@ -394,7 +394,8 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel,  {
             this.selections.add(r);
             this.last = this.lastActive = index;
             if(!preventViewNotify){
-                this.grid.getView().onRowSelect(index);
+                var view = this.grid.view ? this.grid.view : this.grid;
+                view.onRowSelect(index);
             }
             this.fireEvent("rowselect", this, index, r);
             this.fireEvent("selectionchange", this);