Amit Sharma
Amit Sharma

Reputation: 1988

How can i copy a Extjs grid row

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

Upvotes: 1

Views: 12604

Answers (3)

Amit Sharma
Amit Sharma

Reputation: 1988

I think here is the perfect solution see it without flash

Upvotes: 4

Deniz
Deniz

Reputation: 813

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.

Upvotes: 1

Dan
Dan

Reputation: 78

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

Upvotes: 1

Related Questions