Hi i want to implement a copy feature so that i can right click and press copy and paste in any wordpad , or something like this can any body give me a guidance how to implement this. imagine it as simple grid. with many rows
Asked
Active
Viewed 1.2k times
3 Answers
4
I think here is the perfect solution see it without flash

VDP
- 6,340
- 4
- 31
- 53

Amit Sharma
- 1,968
- 5
- 24
- 35
-
same blog [cross browser approach to copy content to clipboard with javascript](http://www.rahulsingla.com/blog/2010/03/cross-browser-approach-to-copy-content-to-clipboard-with-javascript) downside: it uses flash – VDP Aug 22 '12 at 13:46
-
1Does this also apply to Extjs 4 ? – code4jhon Nov 20 '13 at 05:26
1
you can take a look at how-to-copy-to-clipboard-in-javascript
to figure out how to do a cross browser clipboard copy first.
Then you can look into Extjs RowSelectionModel class http://www.sencha.com/deploy/dev/docs/ which defines a rowselect event and rowselected method to return the record selected by user then pass it to the clipboard. Hope it helps
1
There are two extensions for copy/paste actions on Grid Panels :
and another useful one
If you want to use copy/paste in a general way, not only in grid panels you must use the Flash option.

Deniz
- 793
- 11
- 20