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

RadFrameContainer inside a dynamically created radpage

2 Answers 118 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Dheeraj Ramaswamy
Top achievements
Rank 2
Dheeraj Ramaswamy asked on 21 May 2009, 12:37 AM

Hi All,

 I have a requirement where i want to create usercontrols dynamically. In each of these user controls, I have a radframecontainer which performs transition between 2 other user controls. Below is the structure

MainPage.xaml : RadPage
        Dashboard.xaml : RadPage #1 
               [DChart.xaml : RadPage]
               [DGrid.xaml
: RadPage]

      Dashbord.xaml : RadPage # 2
                [DChart.xaml : RadPage]
               [DGrid.xaml
: RadPage]
                           
The Dashboard.xaml contains a radframecontainer with a radframe in it. All the necessary properties in the App.xaml are set.

The problem:-
On load of the mainpage, i call a method is dashboard.xaml to then load chart.xaml/grid.xaml by specificying radframe.navigate(new DChart()) which does not throw any error but does not navigate to the specified page. Am i doing something wrong here? Do i need to set some target property??

<UserControl x:Class="TestExample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot">

    </Grid>
</UserControl>

<UserControl x:Class="TestExample.Dashboard"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls">
    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <StackPanel>
            <Button x:Name="btnFlip" Content="Chart"></Button>
            <TextBox x:Name="textControl" />
            <telerik:RadFrameContainer HorizontalAlignment="Stretch" VerticalAlignment="Stretch">          
                <telerik:RadFrame x:Name="rfcDashboard" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></telerik:RadFrame>
            </telerik:RadFrameContainer>
        </StackPanel>
    </Grid>
</UserControl>

<UserControl x:Class="TestExample.DChart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Red">
        <TextBox x:Name="ChartControl" Text="Chart"></TextBox>
    </Grid>
</UserControl>

 

<UserControl x:Class="TestExample.DGrid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <TextBox x:Name="GridControl" Text="Grid"></TextBox>
    </Grid>
</UserControl>

2 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 22 May 2009, 12:53 PM
Hello Dheeraj Ramaswamy,

Is this the same issue as in the project you send us for ticket: 213991?

Sincerely yours,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dheeraj Ramaswamy
Top achievements
Rank 2
answered on 22 May 2009, 10:40 PM
Yes it is the same. Thank you Valentin for responding to my other ticket.
Tags
Navigation
Asked by
Dheeraj Ramaswamy
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Dheeraj Ramaswamy
Top achievements
Rank 2
Share this question
or