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

RadFrame.navigate() problems

1 Answer 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
M L
Top achievements
Rank 1
M L asked on 12 May 2010, 03:13 PM
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.



1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 14 May 2010, 01:11 PM
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.
Tags
General Discussions
Asked by
M L
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or