Navigation in Docking RadDocumentPane

3 posts, 1 answers
  1. lin
    lin avatar
    10 posts
    Member since:
    Jun 2009

    Posted 20 Mar 2010 Link to this post

    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. 

  2. Answer
    Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 25 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. lin
    lin avatar
    10 posts
    Member since:
    Jun 2009

    Posted 25 Mar 2010 Link to this post

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