This is a migrated thread and some comments may be shown as answers.

"Copy" Option Visible & Enabled in ContextMenu but Does Nothing

3 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tom Chien
Top achievements
Rank 1
Tom Chien asked on 29 Oct 2009, 07:43 PM
There's a "Copy" Option that's Visible and Enabled in the default ContextMenu but it doesn't seem to do anything.  If there's no default behavior when you select it, then it shouldn't be in the default ContextMenu at all.  If users want a Copy option, they can customize / replace the ContextMenu.

I don't see any Event that might be triggered by it.  If there's an Override-able Method it calls, as usual, it's doesn't seem to be documented.

FYI, I thought a good use for it would be to do the same thing that the following KB article implements for the Ctrl-C key (namely copying the CurrentRow's Cells, delimited by Tab's and terminated by a Line Feed, to the Clipboard).  I overrode it's handler to do so.

http://www.telerik.com/support/kb/winforms/gridview/copy-pasting-rows-in-and-between-radgridviews-csv-format.aspx

Telerik WinForms 2009Q2 (2009.2.9.729), VB, .Net 2.0 (2.0.50727), VS 2005 (v8.0.50727.762 SP.050727-7600), XP SP3, Core2Duo 2.99GHZ with 3GB.

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 03 Nov 2009, 03:03 PM
Hello Tom Chien,

Copy menu item works in the version that we plan to release for Q3 2009. There is no event associated
with it (at least one visible at design time), but you can subscribe to its Click event handler if you need so.          

Thank you for your feedback about the key shortcuts.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tom Chien
Top achievements
Rank 1
answered on 03 Nov 2009, 06:46 PM
Re. "Copy menu item works in the version that we plan to release for Q3 2009": Cool!  How will it work?  For example, is it going to copy the CurrentRow to the Clipboard like Ctrl-C would with the above KB Article?  I can't imagine it will just copy the CurrentCell since you already have that feature albeit in Cell Edit mode and using a different ContextMenu.

Re. "but you can subscribe to its Click event handler": Do you mean that I can do that now (vs. after Q3 2009)?  If so, how (besides what I did by "hacking" into the default ContextMenu's Items Property using the index of the "Copy" option inside the ContextMenuOpening Event)?  By "hacking", I mean there's no predefined Event (like ContextMenuOpen) listed using a predefined Object (my instance of RadGridView) in the IDE where it can prefill a template of the Event Handler.

0
Nick
Telerik team
answered on 04 Nov 2009, 08:55 AM
Hello Tom Chien,

Thank you for contacting us back. I have misunderstood your question, we support copy only for a single cell. Your suggestion is a good one though, and we will consider that for our future releases. I am afraid that what you refer to hacking is still the only way to modify or enhance the Copy in the context menu.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Tom Chien
Top achievements
Rank 1
Answers by
Nick
Telerik team
Tom Chien
Top achievements
Rank 1
Share this question
or