Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Navigation > Navigation in Docking RadDocumentPane

Answered Navigation in Docking RadDocumentPane

Feed from this thread
  • lin avatar

    Posted on Mar 20, 2010 (permalink)

    Hi Guys,

    When I Put a RadFrame into Docking RadDocumentPane, it not work.
    In App.xmal.cs:
                this.RootVisual = new RadFrameContainer();
                NavigationService service = NavigationService.GetNavigationService();
                service.Navigate(new Default());

    Default.xmal:
    <Grid x:Name="LayoutRoot" Background="#FFDEE8F9">
            <Grid.RowDefinitions>
                <RowDefinition Height="82"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <telerikDocking:RadDocking Grid.Row="1" Background="{x:Null}">
                <telerikDocking:RadDocking.DocumentHost>
                    <telerikDocking:RadSplitContainer>
                        <telerikDocking:RadPaneGroup>
                            <telerikDocking:RadDocumentPane x:Name="rdpContent">
                                <telerik:RadFrameContainer>
                                    <telerik:RadFrame x:Name="rfContent">
                                    </telerik:RadFrame>
                                </telerik:RadFrameContainer>
                            </telerikDocking:RadDocumentPane>
                        </telerikDocking:RadPaneGroup>
                    </telerikDocking:RadSplitContainer>
                </telerikDocking:RadDocking.DocumentHost>
                <telerikDocking:RadSplitContainer>
                    <telerikDocking:RadPaneGroup>
                                    <telerikDocking:RadPane  Header="RadPane">
                    <Grid Background="Transparent">
                        <telerikNavigation:RadOutlookBar x:Name="leftOutlookbar">
                            <telerikNavigation:RadTabItem Header="RadTabItem">
                                <Grid Background="Transparent"/>
                            </telerikNavigation:RadTabItem>
                            <telerikNavigation:RadTabItem Header="RadTabItem">
                                <Grid Background="Transparent"/>
                            </telerikNavigation:RadTabItem>
                            <telerikNavigation:RadTabItem Header="RadTabItem">
                                <Grid Background="Transparent"/>
                            </telerikNavigation:RadTabItem>
                        </telerikNavigation:RadOutlookBar>
                    </Grid>
                </telerikDocking:RadPane>
                    </telerikDocking:RadPaneGroup>
                </telerikDocking:RadSplitContainer>
            </telerikDocking:RadDocking>
            <Grid x:Name="gridTitle">
            </Grid>
        </Grid>

    in Default.xaml.cs
        rfContent.Navigate(new Page4());
    It Can't display content of Page4, but the IE's title is change to Page4's title.  If I put RadFrameContainer into grid "gridTitle", the radFrame can navigate to page4.

    Can you tell me what I'm doing wrong?
    Thanks very much for your help. 

    Reply

  • Answer Bobi Bobi admin's avatar

    Posted on Mar 25, 2010 (permalink)

    Hi lin,

    The current Telerik Navigation framework is supported due to backward compatiblity with our previous releases when there was no Navigation framework in the Silverlight runtime.
    If you are building a new project - it will be better to use the Silverlight framework from Microsoft.

    However if you prefer to use RadNavigation I could suggest you to check the following things:

    1. Make sure that Default is of RadPage type.
    2.Try to use something like:
    private void Application_Startup(object sender, StartupEventArgs e)
            {
                RadFrameContainer container = new RadFrameContainer();
                NavigationService service = NavigationService.GetNavigationService();
                this.RootVisual = container;
                service.Target = container;
                service.Navigate(new Default());
            }

    3. In Default page if you still have any problems withe navigation you can reset the Target of the NavigationService:
    void Default_Loaded(object sender, RoutedEventArgs e)
            {
                service =  NavigationService.GetNavigationService();
                service.Target = this.frame;
            }

    All the best,
    Bobi
    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.

    Reply

  • lin avatar

    Posted on Mar 25, 2010 (permalink)

    Bobi , I use navigation from Microsoft, it do work. Thank you a lot.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Navigation > Navigation in Docking RadDocumentPane
Related resources for "Navigation in Docking RadDocumentPane"

Silverlight Navigation Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]