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

SL3 Navigation Application - menu error?

3 Answers 107 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Kenneth Jamieson
Top achievements
Rank 1
Kenneth Jamieson asked on 16 Feb 2010, 08:09 PM
Hey all,

I have a SL3 navigation app. In the MainPage.xml I wanted to put the navigation links into RadMenu. On their own, the work fine but when wrapped in a RadMenuItem they try and get the browser to load the page as real URL and obviously fail.

So this works...

<StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">  
    <HyperlinkButton Style="{StaticResource MenuLinkStyle}"   
            NavigateUri="/PageManager" TargetName="ContentFrame" Content="pages" /> 
</StackPanel> 

But this fails...

<StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">  
    <telerikNavigation:RadMenu  telerikControls:StyleManager.Theme="Windows7">  
        <telerikNavigation:RadMenuItem Header="CMS" > 
            <HyperlinkButton  Style="{StaticResource MenuLinkStyle}"   
                     NavigateUri="/PageManager" TargetName="ContentFrame" Content="pages" /> 
        </telerikNavigation:RadMenuItem> 
    </telerikNavigation:RadMenu> 
</StackPanel> 


It seems that the RadMenu somehow bloks the Silverlight navigation behavior from working. Ideas?

Thanks!



3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Feb 2010, 07:44 AM
Hello Kenneth Jamieson,

This is caused by Silverlight 3 - there are some problems with HyperlinkButton when placed in Popup.
The problem is resolved in Silverlight 4 beta1. We cannot do much about this issue.

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
Joel Palmer
Top achievements
Rank 2
answered on 24 May 2010, 04:33 PM
Using SL4, do you have a working code example showing how to navigate between pages using the RadMenu?  Search didn't return anything that seemed close.
0
Hristo
Telerik team
answered on 26 May 2010, 07:52 AM
Hello Joel Palmer,

Please find the attached sample that demonstrate one possible way of using RadMenuItems for page navigation. You can also attach a handler to RadMenu.ItemClick event and manually navigate to the corresponding page. This way you will overcome the limitation in the current project that you have to click the hyperlink control to navigate (not working if you click the RadMenuItem).

Let us know if you need more information.

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.
Tags
Menu
Asked by
Kenneth Jamieson
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Joel Palmer
Top achievements
Rank 2
Share this question
or