Open new Page referenced in a RadMenuItem's Tag

2 posts, 0 answers
  1. Fabricio Frontarolli
    Fabricio Frontarolli avatar
    2 posts
    Member since:
    May 2010

    Posted 21 Dec 2010 Link to this post


    Each RadMenuitem has a Tag.

    I would like to reference each RadMenuItem's Tag to a particular Page that I have created, and open in a new RadWindow.

    The code below illustrates more or less what I need.

    <telerik:RadMenu Name="radMenu1" >
          <telerik:RadMenuItem         Header="Operational" >
                 <telerik:RadMenuItem  Header="Customers"  Tag="Customer.xaml" Click="Navigate"  />
                 <telerik:RadMenuItem  Header="Products"    Tag="Products.xaml" Click="Navigate"  />

    C# code:

    private void Navigate(object sender, Telerik.Windows.RadRoutedEventArgs e)
         RadWindow floatableWindow = new RadWindow()
            Width   = 900,
            Height  = 450,
            Content = (sender as RadMenuItem).Tag

    Is it possible to be done? Is there another way to do that?

  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 27 Dec 2010 Link to this post

    Hi Fabricio Frontarolli,

    I will recommended you using a HyperlinkButton placed inside the RadMenuItem. So instead of using the Tag property of the menu item you can put the page address directly into the NavigateUri, without handling the code behind's click event.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft R3 2016 release webinar banner
Back to Top