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

Can't assign RADContext Menu to RADGridView.ContextMenu

3 Answers 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sanket Singhvi
Top achievements
Rank 1
Sanket Singhvi asked on 14 Jul 2010, 09:51 PM
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

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 19 Jul 2010, 02:22 PM
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
0
Sanket Singhvi
Top achievements
Rank 1
answered on 19 Jul 2010, 11:22 PM
Well Question is how HotKeys like (Ctrl +C) will work for context menu in RadGridView.
0
Hristo
Telerik team
answered on 20 Jul 2010, 08:09 AM
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
Tags
GridView
Asked by
Sanket Singhvi
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Sanket Singhvi
Top achievements
Rank 1
Share this question
or