1

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

Amit Sharma
  • 1,968
  • 5
  • 24
  • 35

3 Answers3

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
  • 1
    Does 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

Community
  • 1
  • 1
Dan
  • 78
  • 8
1

There are two extensions for copy/paste actions on Grid Panels :

Excel Editor Grid

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