Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 22, 2008 08:05
open dhtmlx forum
DHX Grid: Copy particular Cell's Value to Clipboard from context menu.

Hi there,
How to copy particular Cell's Value to Clipboard from context menu. (Not by selecting that cell context menu)
Means when I right click on (4,5) cell, then how to copy (1,1) cell value to CLIPBOARD ???
Answer posted by Support on Oct 22, 2008 08:40
If you have dhtmlxgrid_nxml.js included, it can be done as 
           grid.toClipBoard(grid.cells(1,1).getValue());
Answer posted by Tejas Shah on Oct 23, 2008 07:31
Hi,
    This doesn't work in FF. Why ?
Answer posted by Support on Oct 23, 2008 08:19
FF block access to clipboard by default, need to be enabled separatly. 
http://www.febooti.com/support/website-help/website-javascript-copy-clipboard.html
Answer posted by Tejas Shah on Oct 23, 2008 09:34
Hi there,
             The said link says that we have to MANUALLY configure the about:config. But how can I tell the client those are using web-application on their site. ???
             I have to do it thru coding only. So is there some way ???
Answer posted by Support on Oct 23, 2008 10:11
It is disabled on browser level , from security reasons. There is no way to enable clipboard from the script.