X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_grid_Grid.js.html;h=93dfadbefb7cdd7be6737b3a1bcfef3c635f3a4b;hp=1bcdd67b46f85e978dbb3be6b220c29a6fdcba01;hb=15998029b9f2ae9f00ad0951d00d17d32ff4095b;hpb=54fe6a2dc6d24d86a8b3ccf760e1693bcdb7423e
diff --git a/docs/src/Roo_grid_Grid.js.html b/docs/src/Roo_grid_Grid.js.html
index 1bcdd67b46..93dfadbefb 100644
--- a/docs/src/Roo_grid_Grid.js.html
+++ b/docs/src/Roo_grid_Grid.js.html
@@ -501,6 +501,40 @@
this.colModel = colModel;
this.view.refresh(true);
},
+ addColumns : function(pos, ar)
+ {
+
+ for (var i =0;i< ar.length;i++) {
+ var cfg = ar[i];
+ cfg.id = typeof(cfg.id) == 'undefined' ? Roo.id() : cfg.id; this.cm.lookup[cfg.id] = cfg;
+ }
+
+
+ if (typeof(pos) == 'undefined' || pos >= this.cm.config.length) {
+ pos = this.cm.config.length; }
+ pos = Math.max(0,pos);
+ ar.unshift(0);
+ ar.unshift(pos);
+ this.cm.config.splice.apply(this.cm.config, ar);
+
+
+
+ this.view.generateRules(this.cm);
+ this.view.refresh(true);
+
+ },
+
+
+
onKeyDown : function(e){
@@ -723,4 +757,4 @@
* %0 is replaced with the number of selected rows.
* @type String
*/
-Roo.grid.Grid.prototype.ddText = "{0} selected row{1}";