DHTMLX Docs & Samples Explorer

pasteBlockFromClipboard()

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

paste content of clipboard into block selection of grid

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: copyBlockToClipboard, gridFromClipboard, updateCellFromClipboard, updateRowFromClipboard, addRowFromClipboard