I read different threads here for export datagrid to csv.
http://www.javaexperience.com/dojo-export-data-from-grid/
http://livedocs.dojotoolkit.org/dojox/grid/EnhancedGrid/plugins/Exporter
Here is my modified JSfiddle: Edit fiddle - JSFiddle
I think the url setting got problem therefore can't get it to export to csv. I also created a file called ExportGrid.html. Can someone help me take a look. I put files here: C:\inetpub\wwwroot\Exportdata\index.html or C:\inetpub\wwwroot\Exportdata]ExportGrid.html
Thank you.
Solved! Go to Solution.
Thanks Thejus! Now working.
James,
Since the grid var is undefined inside that function I would add:
var grid = dijit.byId("grid");
Thank you! Very very helpful indeed!
James.