Select to view content in your preferred language

Can't get export datagrid to csv

7488
12
Jump to solution
02-26-2015 10:30 AM
MayJeff
Deactivated User

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.

0 Kudos
12 Replies
JamesOsundwa
Regular Contributor

Thanks Thejus! Now working.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

James,

   Since the grid var is undefined inside that function I would add:

var grid = dijit.byId("grid"); 
JamesOsundwa
Regular Contributor

Thank you! Very very helpful indeed!

James.

0 Kudos