Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sangam on Oct 21, 2008 00:27
open dhtmlx forum
Export to Excel

Hi Sir,

We have a requirement of exporting data into MS Excel, we are already using DHTMLX for the screen. The screen consist of button like Undo, Redu, Clear Change ect. Is there a functionality which directly export data in MS Excel? If yes, could you please provide us some examples.

I am planning to add one more button "Export to Excel" & on click of it which return a MS Excel sheet.

If you need more info let me know.

Thanks & Regards,
Sangam
Answer posted by Support on Oct 21, 2008 02:20
Grid is a client-side (javascript) component. It doesn't  allows  to  export  data  directly to the Excel.

The component provides serializeToCSV() method which returns csv string with grid data. And this string can be passed to some server-side program in order to export to Excel:

http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/pro_load_csv.html