Can't assign RADContext Menu to RADGridView.ContextMenu

4 posts, 0 answers
  1. Sanket Singhvi
    Sanket Singhvi avatar
    20 posts
    Member since:
    May 2010

    Posted 14 Jul 2010 Link to this post

    Hi,

    1) I am trying to populate a RadContext menu at run time and trying to assign it to RadGridView but it is expecting Windows.Control.contextmenu

    2) I use windows context menu instead of RadcontextMenu. Now I have trouble with hot keys. For Copy menu item I am trying to bind command property to ApplicationCommands.Copy . But problem occurs when I click on a row and Hit Control C nothing happens. Don't know why it is not firing Copy Menu click event.

    regards
    sanket
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 19 Jul 2010 Link to this post

    Hello Sanket Singhvi,

    RadContextMenu does not inherit from ContextMenu class so you cannot assign it to ContextMenu property. This property comes from a base class and expect a System.Windows.Controls.ContextMenu class.
    You can see how to use RadContextMenu in our demos:
    http://demos.telerik.com/wpf/?ContextMenu/WPF/FirstLook

    As for your second question - we are unable to reproduce it. Could you send us project that we can investigate?

    Sincerely yours,
    Hristo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sanket Singhvi
    Sanket Singhvi avatar
    20 posts
    Member since:
    May 2010

    Posted 19 Jul 2010 Link to this post

    Well Question is how HotKeys like (Ctrl +C) will work for context menu in RadGridView.
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 20 Jul 2010 Link to this post

    Hi Sanket Singhvi,

    RadGridView allow you to modify the default action on specific keys. You can read more here:
    http://blogs.telerik.com/blogs/posts/10-07-05/introducing_cell_copy_paste_in_radgridview_for_wpf_silverlight.aspx

    As for the RadContextMenu there is no built-in copy command for the selected rows/cells but you could manually do so.

    Let us know if you need more information.

    Greetings,
    Hristo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top