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

HTMLPlaceholder not visible in ChilWindow

4 Answers 142 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 21 Aug 2009, 02:34 PM
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> 
     

4 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 24 Aug 2009, 07:37 AM
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.
0
Nesim
Top achievements
Rank 2
answered on 04 Sep 2009, 11:56 AM
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

0
Bobi
Telerik team
answered on 08 Sep 2009, 06:29 AM
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.
0
James
Top achievements
Rank 1
answered on 08 Sep 2009, 07:20 AM
I'm using the latest internal build, and can confirm it's working fine for me now - thanks.

James
Tags
HTMLPlaceHolder
Asked by
James
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Nesim
Top achievements
Rank 2
James
Top achievements
Rank 1
Share this question
or