RadFrameContainer inside a dynamically created radpage

3 posts, 0 answers
  1. Dheeraj Ramaswamy
    Dheeraj Ramaswamy avatar
    15 posts
    Member since:
    Jun 2008

    Posted 20 May 2009 Link to this post

    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. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 May 2009 Link to this post

    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.
  3. DevCraft banner
  4. Dheeraj Ramaswamy
    Dheeraj Ramaswamy avatar
    15 posts
    Member since:
    Jun 2008

    Posted 22 May 2009 Link to this post

    Yes it is the same. Thank you Valentin for responding to my other ticket.
Back to Top