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

4 posts, 0 answers
  1. Tom Chien
    Tom Chien avatar
    125 posts
    Member since:
    Jun 2009

    Posted 29 Oct 2009 Link to this post

    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.
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 03 Nov 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Tom Chien
    Tom Chien avatar
    125 posts
    Member since:
    Jun 2009

    Posted 03 Nov 2009 Link to this post

    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.

  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 04 Nov 2009 Link to this post

    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.
Back to Top