DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### serializeToCSV(textmode)

Required library edition:
Required library file: dhtmlxgrid_nxml.js

serialize to CSV string

- text only - {true|false} optional, force serialization of text values (skip HTML elements), false by default

       //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);

serializeToCSV() method require all rows to be loaded. It incompatible with dynamic Smart Rendering mode.

See also: serialize