DHTMLX Docs & Samples Explorer

rowToClipboard(rowId)

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

copy value of row to clipboard

  • rowId - id of row (optional, use selected row by default)
<a href="javascript:void(0)" onclick="copyData()">Copy selected row (with tab as delimiter) to clipboard</a>
<script>
function copyData(type,delim){
   mygrid.setCSVDelimiter('\t');
   mygrid.rowToClipboard();
}
</script>

See also: cellToClipboard, copyBlockToClipboard, gridToClipboard