Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Peter on Jul 30, 2008 06:52
open dhtmlx forum
Clear cell selection after copy

Hi,
how can I clear the selection of the cells after I copied the values to the clipbord?

...
mygrid.attachEvent("onKeyPress",onKeyPressed);
mygrid.enableBlockSelection();
...

function onKeyPressed(code,ctrl,shift){
if(code==67&&ctrl){
mygrid.setCSVDelimiter("\t")
mygrid.copyBlockToClipboard()
}
return true;
}
Answer posted by Support on Jul 30, 2008 10:08
Can be forced by
    mygrid._HideSelection();
Answer posted on Jul 30, 2008 10:58
oh, that's easy.
thx