RadFrame.navigate() problems

2 posts, 0 answers
  1. M L
    M L avatar
    16 posts
    Member since:
    May 2010

    Posted 12 May 2010 Link to this post

    Hi,
    We're having issues with RadFrames.
    Following documantation (http://www.telerik.com/help/silverlight/navigation-radframe.html) and blog entry (http://blogs.telerik.com/boryanamiloshevska/posts/08-10-03/page_navigation_for_silverlight_2_rc0.aspx) it was easy to make a simple navigation by applying this code in App:
    private void Application_Startup(object sender, StartupEventArgs e)
            {
                this.RootVisual = new RadFrameContainer();
                NavigationService service = NavigationService.GetNavigationService();
                if (!NavigationService.LoadDeepLink())
                {
                    service.Navigate(new Page1());
                }
            }
    However, what it does is it replaces current view with the new page. What we want to make however, is to add a frame inside our project and change its content by loading other pages into it with navigate(), leaving the rest of the page untouched, just changing this one frame. This works perfectly fine with standard silverlight controls (System.Windows.Controls.Frame). However with Telerik RadFrame this isn't so. We've tried couple of aproaches:
    Added new "Silverlight Page" named Page1 to project for testing, changed that page into RadPage (since it implements IFrame interface requiered by RadFrame.Navigate()).
    Next, in MainPage we added a standard button and the following Rad Controls:
    <telerik:RadFrameContainer x:Name="radFrameContainer_Navi" >
            <telerik:RadFrame x:Name="radFrame_Navi"></telerik:RadFrame>
     </telerik:RadFrameContainer>
    Now, for the click event on the main page we've added following code:
    private void button1_Click(object sender, RoutedEventArgs e)
            {
                radFrame_Navi.Navigate(new Page1());
               /* NavigationService service = NavigationService.GetNavigationService();
                if (!NavigationService.LoadDeepLink())
                {
                    service.Target = radFrameContainer_Navi;
                    service.Navigate(new Page1());
                } */
            }
    Tried both the commented and uncommented versions, but they behave the same.
    After pressing the button, instead of seeing test content of Page1 in our frame on MainPage, we see no change to the view itself. The strange thing is that page's title displayed in the browser's title bar gets changed to the Page1's title.
    We've even tried changing mainpage from standard usercontrol to RadFrameContainer and use that framecontainter instead of the one defined in xaml, but to no vain. Its a small application only for testing, so if the above description is not enough, I can post the code.



  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 14 May 2010 Link to this post

    Hi M L,

     Navigation has been implemented in Silverlight by Microsoft in the latest versions. You can use their implementation, if you use Silverlight 4, for more updated functionality.

    Best wishes,
    Yavor Georgiev
    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.
Back to Top