HTMLPlaceHolder in RadWindow

2 posts, 0 answers
  1. Fredrik
    Fredrik avatar
    42 posts
    Member since:
    Oct 2007

    Posted 17 Dec 2010 Link to this post

    I am trying to use the RadHtmlPlaceHolder in an SL4 ChildWindow (I know I could use RadWindow, but prefer to only use "non-native" SL componentes unless I really need to.

    However, some things don't work as expected. Firstly, the HtmlPlaceHolder is not placed correctly when the ChildWindow is shown initially (through ChildWindow.Show()). If the user maximimises or restores the web browser, the HtmlPlaceHolder is correctly placed.
    But when the user drags the ChildWindow around, the HtmlPlaceHolder does not follow - it stays at the same position.

    This seems as a common scenario - what do I need to do to get this to work?

    Here's the XAML for the ChildWindow, there is no important code-behind.

    <controls:ChildWindow x:Class="HtmlPlaceHolderMoveWithChildWindow.ChildWindowWithHtmlPlaceHolder"
               Width="400" Height="300" 
               Title="ChildWindowWithHtmlPlaceHolder" xmlns:telerik="" SizeChanged="ChildWindow_SizeChanged">
        <Grid x:Name="LayoutRoot" Margin="2">
                <RowDefinition />
                <RowDefinition Height="Auto" />
            <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" />
            <telerik:RadHtmlPlaceholder Height="197" HorizontalAlignment="Left" Name="radHtmlPlaceholder1" VerticalAlignment="Top" Width="304" SourceUrl="" Grid.Row="0"/>

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 22 Dec 2010 Link to this post

    Hello Fredrik,

    Unfortunately there are known issues when hosting the RadHtmlPlaceHolder in a ChildWindow. Therefore in this case it is better to use a RadWindow to host the RadHtmlPlaceHolder.

    However, I added the item in our PITS where you can follow its progress. Please accept our apology for the caused inconvenience.

    Kind regards,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top