HTMLPlaceholder not visible in ChilWindow

5 posts, 0 answers
  1. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 21 Aug 2009 Link to this post

    I got an HTMLPlaceholder displaying fine inside a TabControl on a Page, and wanted to change to displaying the information in a ChildWindow.

    However, when the ChildWindow, is displayed, the HTMLPlaceHolder is not displaying - just the control containing it.

    The XAML is below - any suggestions, please?

    Thanks,

    James
        <controls:ChildWindow x:Class="GlastirSLApplication2.Views.CaseWorkdesk2" 
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
               xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        xmlns:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
                            
               Width="1024" Height="768"   
               Title="Case Workdesk">  
        <Grid x:Name="LayoutRoot" Margin="2">  
            <Grid.RowDefinitions> 
                <RowDefinition /> 
                <RowDefinition Height="Auto" /> 
            </Grid.RowDefinitions> 
            <Grid HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" ShowGridLines="True" Grid.Row="0">  
                <Grid.RowDefinitions> 
                    <RowDefinition Height="25" /> 
                    <RowDefinition Height="*" /> 
                </Grid.RowDefinitions> 
                <StackPanel Orientation="Horizontal" Grid.Row="0" > 
                    <dataInput:Label HorizontalAlignment="Left" Margin="10,0,0,0"  Content="Case Number" /> 
                    <TextBox IsReadOnly="True" x:Name="textBox" HorizontalAlignment="Left" Width="120" Margin="10,0,0,0" Text="{Binding CaseNumber, Mode=OneWay}" TextWrapping="Wrap"/>  
                </StackPanel> 
     
                <telerikNavigation:RadTabControl x:Name="tcMain" SelectionChanged="RadTabControl_SelectionChanged" Grid.Row="1">  
                    <telerikNavigation:RadTabItem x:Name="tabEditor" Header="Map" > 
                        <Grid Background="Blue">  
                            <Border BorderBrush="Black" BorderThickness="1">  
                                <telerik:RadHtmlPlaceholder x:Name="placeEditor" RespectSilverlightLayoutMeasure="True" SourceUrl="/Editor.aspx"/>  
                            </Border> 
     
                        </Grid> 
                    </telerikNavigation:RadTabItem> 
                    <telerikNavigation:RadTabItem Header="Diary" IsSelected="True">  
                        <telerikScheduler:RadScheduler /> 
                    </telerikNavigation:RadTabItem> 
                    <telerikNavigation:RadTabItem Header="Events"/>  
                    <telerikNavigation:RadTabItem Header="Notes"/>  
                </telerikNavigation:RadTabControl> 
            </Grid> 
     
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" /> 
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" /> 
        </Grid> 
    </controls:ChildWindow> 
         
  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 24 Aug 2009 Link to this post

    Hello James,

    Please find attached a sample project that shows how to use RadHtmlPlaceHolder in a ChildWindow.
    Verify that you are using the latest released assemblies from the SP1 release.

    I hope that this will help you.
    If not please send us the full source code in order to reproduce this issue.

    Sincerely yours,
    Boryana
    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. Nesim
    Nesim avatar
    7 posts
    Member since:
    May 2008

    Posted 04 Sep 2009 Link to this post

    Hi,

    I checkout your sample. That's not what I want to do.  It can't display html content while I open it as modal popup.
    For example change your App.xaml.cs Line:29 in your sample like that

     

    this.RootVisual = new Page();

     

     

    ChildWindow ch = new ChildWindow();

     

    ch.Show();

    You will see that it doesn't show the contents.

    Thanks.
    Sincerely

  5. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 08 Sep 2009 Link to this post

    Hello Nesim,

    Please make sure that you are using the latest released assemblies from our last internal build.
    I tried the example with the following code and it works as expected:

     private void Application_Startup(object sender, StartupEventArgs e)
            {
                this.RootVisual = new Page1();
                ChildWindow window = new ChildWindow();
                RadHtmlPlaceholder placeHolder = new RadHtmlPlaceholder();
                placeHolder.SourceUrl = new Uri("http://www.telerik.com",UriKind.RelativeOrAbsolute);
                window.Content = placeHolder;
                window.Show();
            }

    Please let us know if you have any other questions or need some more help or sample code.

    Best wishes,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 08 Sep 2009 Link to this post

    I'm using the latest internal build, and can confirm it's working fine for me now - thanks.

    James
Back to Top
DevCraft banner