silverlight menu instead of Context menu appers

4 posts, 0 answers
  1. Midav Obuarez
    Midav Obuarez avatar
    13 posts
    Member since:
    Jan 2010

    Posted 20 Mar 2010 Link to this post

    Hi,
    I copied how to invoke Context menu on r-click for RadTreeView from your examples but instead Silverlight menu shows up when I run the solution.

    My RadTreeView is in DockPanel->Grid->RadExpander->Border. Could this be a problem? What else can I check? Please look at the code below that defines ContextMenu as a child of RadTreeView:

    <

     

    telerikNavigation:RadTreeView SelectionMode="Extended" IsLineEnabled="True" ItemsOptionListType="CheckList" IsOptionElementsEnabled="True" IsRootLinesEnabled="True"

     

     

    x:Name="treeMain" IsTriStateMode="True" Checked="treeMain_Checked" >

     

     

     

    <telerikNavigation:RadContextMenu.ContextMenu>

     

     

     

    <telerikNavigation:RadContextMenu x:Name="ContextMenu" ItemClick="ContextMenu_ItemClick" Opened="ContextMenu_Opened">

     

     

     

    <telerikNavigation:RadMenuItem x:Name="mnuSearch" Header="Search" />

     

     

     

    <telerikNavigation:RadMenuItem x:Name="mnuClearAll" Header="Clear" />

     

     

     

    <telerikNavigation:RadMenuItem IsSeparator="True" />

     

     

     

    <telerikNavigation:RadMenuItem x:Name="mnuAddSrchFields" Header="Add" />

     

     

     

    <telerikNavigation:RadMenuItem x:Name="mnuRemoveSrchFields" Header="Remove" />

     

     

     

    </telerikNavigation:RadContextMenu>

     

     

     

    </telerikNavigation:RadContextMenu.ContextMenu>

     

     

     

    <telerikNavigation:RadTreeViewItem Header="Search Assets" DefaultImageSrc="" IsExpanded="True" />

     

     

     

    <telerikNavigation:RadTreeViewItem Header="My Saved Queries" DefaultImageSrc="" IsExpanded="False" />

     

     

     

    </telerikNavigation:RadTreeView>

     

  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 22 Mar 2010 Link to this post

    Hi Midav Obuarez,

    In order to support RightClick in Silverlight 3 you have to set Silverlight plugin in Windowless mode.
    Just add this parameter in start-up page (in the web project - your_sl_project.html or your_sl_project.aspx):
    <param name="windowless" value="true" />

    Fortunately this is not needed for Silverlight 4.

    All the best,
    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
  4. Midav Obuarez
    Midav Obuarez avatar
    13 posts
    Member since:
    Jan 2010

    Posted 22 Mar 2010 Link to this post

    Hristo,
    Thank you for your reply, unfortunately it didn't help. Here is how I added the parameter to my aspx page:
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
              <param name="source" value="ClientBin/SilverlightApplication3.xap"/>
              <param name="windowless" value="true" />

    I guess that was necessary to do anyway, but something else is still a problem.

    Thanks again.
    Midav



  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 23 Mar 2010 Link to this post

    Hi Midav Obuarez,

    Could you send us your sample project so that we can reproduce this issue?

    Regards,
    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