Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.js
index a34516d..6511474 100644 (file)
@@ -135,6 +135,13 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 
                                     Roo.apply(o.params, d);
                                     
+                                },
+                                load : function (_self, records, options)
+                                {
+                                    var sm = _this.grid.getSelectionModel();
+                                    if (!sm.getSelections().length) {
+                                        sm.selectFirstRow();
+                                    }
                                 }
                             },
                             remoteSort : true,