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

htmlplaceholder on a radwindow

4 Answers 112 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
nowell
Top achievements
Rank 1
nowell asked on 19 Aug 2010, 04:20 AM
Hi:
I placed a htmlpalceholder radwindow in, radwindow high and wide, I set to 800,
I placed a htmlplaceholder on a radwindow,and I set the height and width of radwindow to 800,it shows ok,but when I  scoll
the window to bottom,the htmlplaceholder does not move with the window,and displays strange,the problems can be seen in the attach files
It's my XAML code
 <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Visibility="Visible">
            <TextBlock Text="Select Department"/>
            <tkinput:RadComboBox x:Name="DeptCombx" Width="100" Height="auto" VerticalAlignment="Top"/>
            <Image Source="/A4PM.StationQuery;component/images/pic1.png" Height="77" Width="85"/>
            <TextBlock Text="概述"/>
            <Image Source="/A4PM.StationQuery;component/images/pic1.png" Height="77" Width="85"/>
            <TextBlock Text="工艺流程图"/>
            <Image Source="/A4PM.StationQuery;component/images/pic1.png" Height="77" Width="85"/>
            <TextBlock Text="设备台帐"/>
            <Image Source="/A4PM.StationQuery;component/images/pic1.png" Height="77" Width="85"/>
            <TextBlock Text="HSE信息"/>
            <Image Source="/A4PM.StationQuery;component/images/pic1.png" Height="77" Width="85"/>
            <TextBlock Text="城市简介"/>
        </StackPanel>
        <Grid Grid.Column="1">
                <tkinput:RadHtmlPlaceholder Grid.Column="1" x:Name="htmlholder" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RespectSilverlightLayoutMeasure="True"/>
        </Grid>
    </Grid>
                                                                                                                                                      thanks


4 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 23 Aug 2010, 06:09 PM
Hello nowell,

I tried to reproduce your issue. Could you please examine the attached sample project and modify it to fit your requirements, because I am not getting such behavior?

On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Sincerely yours,
Viktor Tsvetkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
nowell
Top achievements
Rank 1
answered on 24 Aug 2010, 02:33 AM
Thank you for your answer
my problem has been resolved, the reason of this problem is that my aspx page and htmlplaceholder all have scoll bar,and When I scolled the bar of htmlplaceholder,the bar of aspx scolled too,so the problem I have mentioned was appeared,
. So I set the scoll bar of aspx unvisible,the problem don't appear forever. Thanks.
0
jlo
Top achievements
Rank 1
answered on 21 Sep 2010, 03:25 PM
Hello,

I have similar problem, when the outer window (not the rad window i.e., main window had a child window which is a rad window and that in rad window in turn contains a place holder)  is scrolled the place holder inside the rad window is not being moved from its position.

 

 

Below is the code snippet.
Xaml
--------------------
<
Grid x:Name="LayoutRoot" Background="White">

 

 

 

 

 

<telerikNavigation:RadWindow Name="RadWindow1" PinMode="NoPin" VerticalAlignment="Bottom" HorizontalAlignment="Left"

 

ResizeMode="CanResize" Closed="RadWindow_Closed"

 

CanClose="True" CloseMode="Hide" CanMove="True"

 

LocationChanged="RadWindow_LocationChanged"

 

Template="{StaticResource RadWindow_ControlTemplate}" >

 

 

 

 

 

<Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Right" VerticalAlignment="Top">

 

 

<controls:RadHtmlPlaceholder VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="RadHtmlPlaceholder1" ></controls:RadHtmlPlaceholder  

 

 

 

</Border>

 

 

 

 

 

</telerikNavigation:RadWindow>

 

 

 

 

 

 

 

</Grid>

xaml.cs
------
on Load event I have

 

 

RadHtmlPlaceholder1.SourceUrl = vm.HelpURI;

 

 

on VM
----------

 

private

 

 

 

Uri helpUri;

 

 

 

 

public Uri HelpURI

 

{

 

 

 

get
{

 

 

 

 

return helpUri;

 

}

 

 

 

set {

helpUri =

 

value;

 

 

PropertyChangedHandler(

 

 

"HelpURI");

 

}

}

 

 

 

HelpURI = new Uri("http://www.google.com");


Any help would be appreciated.

 

 

0
Viktor Tsvetkov
Telerik team
answered on 22 Sep 2010, 04:50 PM
Hello jlo,

Unfortunately I was not able to reproduce your issue. Could you please send me your sample project, so I will be able to better assist you?

Sincerely yours,
Viktor Tsvetkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
HTMLPlaceHolder
Asked by
nowell
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
nowell
Top achievements
Rank 1
jlo
Top achievements
Rank 1
Share this question
or