Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
Export to Excel File Name
Export to Excel File Name
Hi,
I am using ext-2.2. I am able to export data from my grid to excel, but if i save that excel file, that file name is taking random characters. for eg: 'feop9bnd'. Now i want to set meaningful filename. How can i do that?
Thanks
Sencha - Ext JS Dev Team
Export to Excel File Name
Export to Excel File Name
Hi
Below is my code in js , this is working fine
buttons: [{
id: 'grid-excel-button',
text: 'Export to Excel...',
iconCls: 'excel',
handler: function(){
document.location='data:application/vnd.ms-excel;base64,' +
Base64.encode(gridX.getExcelXml());
}
}]
how should and where should i keep the below code to specify meaningful excel name
Content-Disposition:attachment;filename=export_filename.xls
Thanks
sree
Sencha User
I have the same problem.
And I also couldn't manage this.
Thanks.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us