telerik menu not displaying items . . .

2 posts, 0 answers
  1. Rayees
    Rayees avatar
    2 posts
    Member since:
    Dec 2008

    Posted 18 Dec 2008 Link to this post

    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.

  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 18 Dec 2008 Link to this post

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