Export data to excel sheet

Hi,



Can you let me know the pre-requisities to export data.



I have written the code

function exportExcel(){

var file = mygrid.serializeToCSV(true);

}



The function is called on ckick of a button “Export”.



But i dont able to get it working.



Thanks

To enable csv export related functionality you need to include
codebase/ext/dhtmlxgrid_nxml.js
file in additiona to common ones ( file exists in both standard and pro editions )

dhtmlx.com/docs/products/dhtmlxG … 8686103000