Check documentation for the latest version of dhtmlxSuite copyBlockToClipboard DHTMLX Docs

copyBlockToClipboard

copies the content of a block selection into clipboard in CSV format (delimiter as set for CSV serialization)

void copyBlockToClipboard();

Example

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

Back to top