RadContextMenu doesnt work

2 posts, 0 answers
  1. ss
    ss avatar
    50 posts
    Member since:
    Jun 2010

    Posted 24 Jun 2010 Link to this post

    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.

  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 25 Jun 2010 Link to this post

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