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

silverlight menu instead of Context menu appers

3 Answers 42 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Midav Obuarez
Top achievements
Rank 1
Midav Obuarez asked on 21 Mar 2010, 01:23 AM
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>

 

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 22 Mar 2010, 02:44 PM
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.
0
Midav Obuarez
Top achievements
Rank 1
answered on 22 Mar 2010, 08:02 PM
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



0
Hristo
Telerik team
answered on 23 Mar 2010, 11:57 AM
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.
Tags
Menu
Asked by
Midav Obuarez
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Midav Obuarez
Top achievements
Rank 1
Share this question
or