Erratic HTMLPlaceHolder behavior

4 posts, 0 answers
  1. Stephen
    Stephen avatar
    2 posts
    Member since:
    Jun 2011

    Posted 19 Oct 2011 Link to this post

    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()
          Page.SourceUrl = new Uri("");

    <UserControl x:Class="*structure*Control"
        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" />
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 24 Oct 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Mike
    Mike avatar
    34 posts
    Member since:
    Jan 2010

    Posted 31 Oct 2011 Link to this post

    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.
  5. Mike
    Mike avatar
    34 posts
    Member since:
    Jan 2010

    Posted 31 Oct 2011 Link to this post

    nvm, my problem was fixed with the latest internal build.

    Thank you
Back to Top