}
Roo.apply(this, cfg);
+
+ if (this.grid) {
+
+ this.buildFromGrid();
+
+ }
+
+
+
var submit = false;
this.createCsvFrame();
this.csvFrame= false;
}
+ },
+
+ buildFromGrid : function()
+ {
+ // get the params from beforeLoad
+ this.grid.ds.fireEvent('beforeload', {
+ params : this.params
+
+ });
+
+ // work out the cols
+ Roo.each(this.grid.cm.config, function(c,i) {
+ params['csvCols['+i+']'] = c.dataIndex;
+ params['csvTitles['+i+']'] = c.header;
+
+ });
+
+
+
+
}
+
+
+
+
+
});
\ No newline at end of file