Required library edition:
Required library file: dhtmlxgrid_nxml.js
serialize to CSV string
//serialize grid to CSV format var csv=mygrid.serializeToCSV(); //serialize grid to CSV format, only text values will be serialized var csv=mygrid.serializeToCSV(true);
See also: serialize