I have a web page displaying data using dojo datagrid. Sometimes, users need to copy contents from certain cells for further analysis, but since browser’s right click event is disabled in dataGrid, what’s the best way to copy the contents to the clipboard?
Thanks in advance!
David
You do not need anything fancy. I had to do this myself and after looking at so many overly complex solutions I read the documentation and found the easiest way. The grid was meant to do this, it just requires the developer to add menus to an EnhancedGrid. One “gotcha” is that the grid constructor MUST include a div ID. It can not be inserted using dijit.placeAt().
Solution: