roojs-ui.js
[roojs1] / Roo / grid / Grid.js
index 18bd6eb..17d583a 100644 (file)
@@ -513,13 +513,13 @@ Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
         this.cm.lookup[cfg.id] = cfg;
         if (typeof(pos) == 'undefined' || pos >= this.cm.config.length) {
             this.cm.config.push(cfg);
+            this.view.refresh(true);
             return;
         }
-        // slice
+        // splice
         pos = Math.max(0,pos);
-        
         this.cm.config.splice(pos, 0, cfg);
-        
+        this.view.refresh(true);
         
     }