DHTMLX Docs & Samples Explorer

copyBlockToClipboard()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid_selection.js

copy content of block selection into clipboard in csv format (delimiter as set for csv serialization)

mygrid.attachEvent("onKeyPress",onKeyPressed);
...
function onKeyPressed(code,ctrl,shift){
	if(code==67&&ctrl){
	    mygrid.setCSVDelimiter("\t")
	    mygrid.copyBlockToClipboard()
	}
	if(code==86&&ctrl){
	    mygrid.pasteBlockFromClipboard()
	}
	return true;
}

See also: copyRowContent, cellToClipboard, gridToClipboard, rowToClipboard