This question is locked. New answers and comments are not allowed.
I am having problems with using the HTMLPlaceHolder control with the RadDocking control. I have placed the HTMLPlaceHolder control as the content of a RadPane and experience several different problems sporadically, but frequently, when I move the pane around (e.g. click and drag, dock and undock, etc). The problems include:
This occurs with a brand new Silverlight 4 solution (standard two projects: Silverlight application project and the hosting website project) created with VS 2010.
Here is my XAML:
And here is the code-behind:
- HTML content not displaying, i.e. I see all white in the HTMLPlaceHolderControl as if there is no content. This occurs in several docking states, but more often when the panes are docked at the root compass.
- Overlap issues between multiple panes (see overlap_error.jpg). Sometimes I can see the contents of one pane within another pane if one of the panes is docked and the other is undocked.
- An error pops-up (see attached popup_error_msg.jpg) that reads: "Error: 'RadHtmlPlaceholderJS' is undefined". When I hit Debug, I get sent to this script: "if(RadHtmlPlaceholderJS && RadHtmlPlaceholderJS.RAD_HP_12772dc77db54349861c88209a913634) delete RadHtmlPlaceholderJS.RAD_HP_12772dc77db54349861c88209a913634" Note: In my example below, this error seems to occur more often when I only have the RadPane with header = "#1" present, i.e. comment out the RadPane with header = "#2", launch application, then move pane #1 around.
- In the example below, in pane #2: if I navigate to another page in the HTMLPlaceHolder (e.g. by clicking on a link), then click and drag pane #2 around, the page will reset to the original page specified by the SourceUrl. I expect that it should remain on the page that I navigated to.
This occurs with a brand new Silverlight 4 solution (standard two projects: Silverlight application project and the hosting website project) created with VS 2010.
Here is my XAML:
<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" x:Class="HTMLPlaceholderTest.MainPage" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <radDock:RadDocking> <radDock:RadDocking.DocumentHost> <radDock:RadSplitContainer> <radDock:RadPaneGroup> <radDock:RadPane Header="#1"> <telerik:RadHtmlPlaceholder x:Name="MyHTMLPlaceHolder" /> </radDock:RadPane> <radDock:RadPane Header="#2"> <telerik:RadHtmlPlaceholder SourceUrl="http://www.google.com" /> </radDock:RadPane> </radDock:RadPaneGroup> </radDock:RadSplitContainer> </radDock:RadDocking.DocumentHost> </radDock:RadDocking></UserControl>And here is the code-behind:
Partial Public Class MainPage Inherits UserControl Public Sub New() InitializeComponent() MyHTMLPlaceHolder.HtmlSource = "<b>Some HTML text</b>" End SubEnd Class