-
1 Nov 2012 9:36 AM #1
Export Ext.Grid data in CSV (not Excel)
Export Ext.Grid data in CSV (not Excel)
I am trying to export the Ext.grid data in the CSV format using Ext.ux.Exporter. Can somebody give me an example as to how I can achieve doing it successfully?
I added the
which I got from the Ed github.Code:<script src="../Exporter-all.js" type="text/javascript"></script>
Now I located the new source https://code.google.com/p/geoext-vie...r-all.js?r=557 but not sure why I keep getting,Code:var exportCSV = new Ext.ux.Exporter.Button({ component: grid, text: 'Download CSV' });
Heron is not defined
in the console, in line 179. Any idea how I can resolve that?
-
5 Nov 2012 5:49 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Line 179 uses the heron namespace. Looks like you need to include other JS files.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Nov 2012 10:07 AM #3
Thanks for the reply @mitchellsimoens. I was able to add,
And I can now download the data, but it is downloaded as text file not CSV. Where do I need the correction?Code:<script src="../heron-0.70/lib/ext.ux/Exporter-all.js" type="text/javascript"></script> <script src="../heron-0.70/script/Heron.js" type="text/javascript"></script>
-
5 Nov 2012 10:38 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
You would have to ask the author about that
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote