DHTMLX Docs & Samples Explorer

gridToClipboard()

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxgrid_nxml.js

copy grid in CSV to clipboard

<a href="javascript:void(0)" onclick="copyData()">Copy entire grid (with tab as delimiter) to clipboard</a>
<script>
function copyData(type,delim){
   mygrid.setCSVDelimiter('\t');
   mygrid.gridToClipboard();
}
</script>

See also: cellToClipboard, copyBlockToClipboard, rowToClipboard, enableBlockSelection