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

Erratic HTMLPlaceHolder behavior

3 Answers 70 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 19 Oct 2011, 07:03 PM
I am currently attempting to put an html page within a usercontrol in silverlight. I am playing the HTMLPlaceholder in a grid and that is all that is in the usercontrol. I set the value in the constructor for what it is pointing at. 

However there is about a 1 in 10 chance of the website actually showing up when I go to that view. Sometimes its immediate, sometimes after coming back. Also some view changes that remove the background as well suddenly reveal that the page was already loaded. Also sometimes the the page loads a tiny bar at the top of the screen completely outside the grid its contained in. It is very very erratic.

I have tried using RadWindow and I can get that to work, but it must look like it is a display page opening as a result of a "tab" choice. 

Also I am using version v.2011.1.419.1040.

*note regarding xaml* The original version I  tried was just <RadHtmlPlaceholder x:Name="name"/> with me setting the Uri from the CS file.

Also I have windowless set to true. and set the aspx file's class/id definitions to the proper settings.

Code is below

public BControl()
 {
      InitializeComponent();
 
      Page.SourceUrl = new Uri("http://www.website.com");
 
}

<UserControl x:Class="*structure*Control"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    xmlns:NineGrid="clr-namespace:NineGrid;assembly=NineGrid"
    x:Name="userControl"
    mc:Ignorable="d"
    d:DesignHeight="640" d:DesignWidth="1024">
     
    <Grid x:Name="LayoutRoot" Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <telerikUri:RadHtmlPlaceholder x:Name="BPage" Canvas.ZIndex="100000" KeepContentInMemory="True" Height="auto" Width="auto" />
         
    </Grid>
         
</UserControl>

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 24 Oct 2011, 02:55 PM
Hello Stephen,

Can you please elaborate more on your scenario. You said that you're going to the view containing the HtmlPlaceHolder- can you give us more details on that. Do you use a tab control, navigation framework or another approach for switching/navigating through views?

Can you try to isolate the issue in a small solution and send it in a support ticket - this way we will be able to further investigate the case in a timely manner.

Thank you in advance for your cooperation.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Mike
Top achievements
Rank 1
answered on 31 Oct 2011, 07:11 PM
Hey guys, since my update to the SP1 version, I also have a lot of problem with the htmlplaceholder.

This is a short description: I have a placeholder inside a tabitem. This placeholder contain a crystal report. However, when I switch to another tabitem, the report stay visible and all my application behind disappear.

There is also some problem with the layout rendering. Ill post thje error message as soon as I get the message again.
0
Mike
Top achievements
Rank 1
answered on 31 Oct 2011, 09:29 PM
nvm, my problem was fixed with the latest internal build.

Thank you
Tags
HTMLPlaceHolder
Asked by
Stephen
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Mike
Top achievements
Rank 1
Share this question
or