PDA

View Full Version : yet another grid export to Excel



tdg2008
26 Aug 2008, 7:27 PM
[code]
function StringBuffer(){
this.data = [];
}
StringBuffer.prototype.append = function(){
this.data.push(arguments[0]);
return this;
}
StringBuffer.prototype.toString = function(){
return this.data.join("");
}

Ext.ExcelButton = Ext.extend(Ext.Button, {
handler:function(){
var cm=this.ownerGrid.getColumnModel();
var buffer = new StringBuffer();
buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><content><head>");
//

Shmoo
2 Sep 2008, 7:37 PM
How does this perform with Paged Grids?

From what I can see.. it seems to get the data from the grid's store. So what if you need the whole data? Not just the one retrieved by the store (if its paged).