Personal tools
| Home | sandbox | dhtmlxGrid | samples | clipboard | grid_selection
Document Actions

grid_selection

Sample: dhtmlxGrid Copy to clipboard dhtmlxGrid main page
X
Press Ctrl+C to copy seleted rows into the clipboard, Ctrl+V to replace selected rows by rows from clipboard. You can paste selected rows to Excell.

 
    
mygrid.setOnKeyPressed(onKeyPressed);
    ...
function onKeyPressed(code,ctrl,shift){
        
    if(code==67&&ctrl){
        mygrid.CopySelectionToClipboard()
    }
        
    if(code==86&&ctrl){
        mygrid.PasteSelectionFromClipboard()
    }
        
    return true;
}
.dhtmlxGrid_selection { -moz-opacity: 0.5; filter: alpha(opacity = 50); background-color:#83abeb; opacity:0.5; }

Powered by Plone CMS, the Open Source Content Management System