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

RadContextMenu doesnt work

1 Answer 36 Views
Menu
This is a migrated thread and some comments may be shown as answers.
ss
Top achievements
Rank 1
ss asked on 24 Jun 2010, 02:19 PM

Hello,

I have problem with RadContextMenu. I dont know why but every time I hit right mouse button I see following menu instead of RadContextMenu.

http://cid-999e654c8fe6b888.office.live.com/self.aspx/.Public/SilverlightContextMenu.png

I use following code: 

--------------------------------------------------------------------------------------------------------------

<UserControl x:Class="AdministrationClient.ArticleListPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" xmlns:my="clr-namespace:AdministrationClient" xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">

<Grid x:Name="LayoutRoot" Background="White">
<telerikGridView:RadGridView Name="articles" AutoGenerateColumns="False" SelectionMode="Extended" CanUserFreezeColumns="False" RowActivated="articles_RowActivated" KeyDown="articles_KeyDown" Deleting="articles_Deleting" MouseRightButtonDown="articles_MouseRightButtonDown">
<telerikNavigation:RadContextMenu.ContextMenu>
<telerikNavigation:RadContextMenu x:Name="ContextMenu" ItemClick="ContextMenu_ItemClick"
Opened="ContextMenu_Opened">
<telerikNavigation:RadMenuItem Header="New Child" />
<telerikNavigation:RadMenuItem Header="New Sibling" />
<telerikNavigation:RadMenuItem IsSeparator="True" />
<telerikNavigation:RadMenuItem Header="Edit" />
<telerikNavigation:RadMenuItem Header="Delete" />
<telerikNavigation:RadMenuItem IsSeparator="True" />
<telerikNavigation:RadMenuItem Header="Select" />
</telerikNavigation:RadContextMenu>
</telerikNavigation:RadContextMenu.ContextMenu>
<telerikGridView:RadGridView.Columns>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding AccessLevel}" Header="Access Level"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Created}" Header="Created"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Changed}" Header="Changed"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding FrontPage}" Header="Front Page"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PublicationDate}" Header="Publication Date"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExpirationDate}" Header="ExpirationDate"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Edit}" Header="Edit"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Delete}" Header="Delete"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Print}" Header="Print"/>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExportToPdf}" Header="Export To PDF"/>
</telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>
</Grid>
</UserControl>

--------------------------------------------------------------------------------------------

My project is Silverlight 4 project and I use  RadControls_for_Silverlight_3_2010_1_0422_DEV.msi

Thank you very much for your help.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 25 Jun 2010, 07:48 AM
Hello ss,

If you are using Silverlight 4 then you need to download RadControls for Silverlight 4.

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
Menu
Asked by
ss
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or