Dojo GRID : Export Data to CSV

3867
3
Jump to solution
09-15-2014 06:05 PM
ravitejaviswanadha
New Contributor

Hi All,

I want to understand Dojo Grids for that I have taken an example and working on it , Can some one help me understand and update the below code to Export the Grid to an Excel or CSV format ?

Please find the attachment for the Code..

ArcGIS API for JavaScript‌@

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RiyasDeen
Occasional Contributor III
3 Replies
RiyasDeen
Occasional Contributor III
ravitejaviswanadha
New Contributor

Thank you so much for this , and Still I have challenges in implementation of this , Can you please go though the code and can you brief why the Print and Exporter are not getting invoked even though we have configured the namespace and functions

Here is the Code :

http://jsfiddle.net/0798L7h1/2/

0 Kudos
RiyasDeen
Occasional Contributor III

Hi Raviteja,

You need to use EnhancedGrid and enable printer plugin. I have updated the fiddle.

Edit fiddle - JSFiddle

For export to CSV you need server side file streaming to get the save dialog, refer to the discussion i referred for more detail.