RadHtmlPlaceHolder in RadDocking DocumentHost does not load

5 posts, 1 answers
  1. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 01 Nov 2012 Link to this post

    I have a RadHtmlPlaceHolder in RadDocking DocumentHost. The problem is that the URL supplied does not load in the RadHtmlPlaceHolder until I manually resize one of the surrounding panes via the RadSplitter. This did not happen until I recently updated to the newest version of the Telerik Silverlight controls.

    Any ideas as to why this is happening, what I can do to fix it?

    Thanks.
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 05 Nov 2012 Link to this post

    Hello Andrew,

    I tried to reproduce your issue and it seems that the code works as expected. Can you please provide us with more information about your scenario?

    Also, can you take a look at the attached project and check if I am missing something. If I am, please change it accordingly so I can reproduce it.

    Regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 12 Nov 2012 Link to this post

    If you run the program with the Web project as the startup project you will see a button called Navigate. If you click this button the visible "mainPane" will hide and the hidden "placeholder" pane will show. You will notice however that the RadHtmlPlaceHolder "placeHolder1" will not show as it should. Dragging the splitter between the left and right panes of the RadDocking control will force it to load.

    If you look at the NavButton_OnClick event handler in the View.cs class you will see the following:

    private void NavButton_OnClick(object sender, RoutedEventArgs e)
    {
        this.placeHolderPane.IsHidden = false;
     
        //Commenting out the following line will cause the placeHolder1 to load its content correctly the first time.
        this.mainPane.IsHidden = true;
     
        this.placeHolder1.SourceUrl = new Uri(this.urlBox.Text);
    }

    If you comment out the this.mainPane.IsHidden = trueline the RadHtmlPlaceHolder will load properly.

    So the issue only seems to occur when you hide at least one pane in the RadDocking.DocumentHost and show another pane. Is there something I can do to produce the expected functionality or will this require some kind of fix on your side?
  5. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 15 Nov 2012 Link to this post

    Hi Andrew,

    Thank you for your report. This is a known issue and it is already logged in our PITS and you can follow and vote for it here. Meanwhile take a look at the attached project and let me know if the implemented workaround fits your needs.

    Regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 15 Nov 2012 Link to this post

    That workaround fixes the issue. Thank you.
Back to Top
DevCraft banner