Required library edition:
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