X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_grid_Grid.js.html;h=5a50968cd0f79bf8b8752ccc0f8b519e08992ac2;hp=1bcdd67b46f85e978dbb3be6b220c29a6fdcba01;hb=5b1a708cf006e24f8f6eb81a4e9723dad77c31cd;hpb=5aeb7e7613454bfb7bfb22be8a21d994fb1063a4
diff --git a/docs/src/Roo_grid_Grid.js.html b/docs/src/Roo_grid_Grid.js.html
index 1bcdd67b46..5a50968cd0 100644
--- a/docs/src/Roo_grid_Grid.js.html
+++ b/docs/src/Roo_grid_Grid.js.html
@@ -484,12 +484,12 @@
return this;
},
- reconfigure : function(dataSource, colModel){
if(this.loadMask){
this.loadMask.destroy();
@@ -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}";