Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sba on Jun 03, 2008 01:26
open dhtmlx forum
export cvs to Excel with List type



Hello,
I want to export Grid to Excel.

    grid.setCSVDelimiter("\t");//change csv delimiter
    grid.enableCSVHeader(true);
    var csvNew = grid.serializeToCSV();//serialize to CSV with current active delimiter
But I have one problem :
One column is list type (select) and when I export, I have the identify of the value of list but I want the label which see the user.
Could you help me
Thanks

Answer posted by Support on Jun 03, 2008 05:49
There is no such native option, please try to use attached js file instead of original one
With it the next command
    var csvNew = grid.serializeToCSV(true);
will return the text for all cells, as it rendered in grid ( so it will show the labels, not values )

Attached js file purposed to be used with dhtmlxgrid 1.6 , please mention if you need similar update for older version of grid.
Attachments (1)
Answer posted by sba on Jun 03, 2008 06:30

thanks, I change it in my version.  that's ok. it's very cool