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

Navigation in Docking RadDocumentPane

2 Answers 37 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
lin
Top achievements
Rank 1
lin asked on 20 Mar 2010, 08:06 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Bobi
Telerik team
answered on 25 Mar 2010, 09:44 AM
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.
0
lin
Top achievements
Rank 1
answered on 25 Mar 2010, 11:11 AM
Bobi , I use navigation from Microsoft, it do work. Thank you a lot.
Tags
Navigation
Asked by
lin
Top achievements
Rank 1
Answers by
Bobi
Telerik team
lin
Top achievements
Rank 1
Share this question
or