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

telerik menu not displaying items . . .

1 Answer 80 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rayees
Top achievements
Rank 1
Rayees asked on 18 Dec 2008, 01:21 PM
Hello , 
i am using the telerik RadMenu in my silverlight application . The when i click on any of the
menu items to navigate to another page , on return back to the page i am not able to see the menu items anymore .
Please help .It is very urgent .
Regards
Rayees Wani.

1 Answer, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 18 Dec 2008, 04:14 PM
Hey Rayees,

Just curious, are you navigating to a separate "page" in the silverlight app, or are you talking about sending the browser to a new page?  Also, how are you loading the menu?

I tested it guessing that you're navigating the browser to an external page (using HtmlPage.Window.Navigate(URI)), then going back in the browser and the menu loaded fine.  Care to post your Xaml/cs so we can try to figure that out?

Here's my simple example: :)

<UserControl xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"  x:Class="Silverlight_RadMenuTests.Page" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    Width="400" Height="300">  
    <Grid x:Name="LayoutRoot" Background="White">  
    <telerikNavigation:RadMenu> 
            <telerikNavigation:RadMenuItem Header="MenuItem 1">  
                <telerikNavigation:RadMenuItem Header="Child 1" Click="RadMenuItem_Click" /> 
                <telerikNavigation:RadMenuItem Header="Child 2" Click="RadMenuItem_Click" /> 
                <telerikNavigation:RadMenuItem Header="Child 3" Click="RadMenuItem_Click" /> 
            </telerikNavigation:RadMenuItem> 
            <telerikNavigation:RadMenuItem Header="MenuItem 2">  
                <telerikNavigation:RadMenuItem Header="Child 1" Click="RadMenuItem_Click" /> 
                <telerikNavigation:RadMenuItem Header="Child 2" Click="RadMenuItem_Click" /> 
                <telerikNavigation:RadMenuItem Header="Child 3" Click="RadMenuItem_Click" /> 
            </telerikNavigation:RadMenuItem> 
        </telerikNavigation:RadMenu> 
    </Grid> 
</UserControl> 
 

And .cs:
using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Net;  
using System.Windows;  
using System.Windows.Controls;  
using System.Windows.Documents;  
using System.Windows.Input;  
using System.Windows.Media;  
using System.Windows.Media.Animation;  
using System.Windows.Shapes;  
using System.Windows.Browser;  
 
namespace Silverlight_RadMenuTests  
{  
    public partial class Page : UserControl  
    {  
        public Page()  
        {  
            InitializeComponent();  
        }  
 
        private void RadMenuItem_Click(object sender, RoutedEventArgs e)  
        {  
            HtmlPage.Window.Navigate(new Uri("http://www.google.com"));  
        }  
    }  
}  
 

I left out any real menu logic for the click since it doesn't really matter what child you click for this example.
Tags
Menu
Asked by
Rayees
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Share this question
or