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

HTMLPlaceHolder in RadDocking Control Reload

3 Answers 131 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel Knoll
Top achievements
Rank 1
Daniel Knoll asked on 21 Aug 2012, 06:27 AM
Hi,



we are currently using the RadHTMLPlaceHolder in a RadDocking Control in different Tabs. If we open one Tab, everything works fine and the page is loaded. But as soon we open a second Tab and we switch between those two Tabs, the RadHTMLPlaceHolder reloads the displayed page on each switch. In the displayed page we use POST data and on reload the page is resetted to its Initial state.



Furthermore we get several Script Errors / Java Script Errors. We also tried to set the property "KeepContentInMemory" to true, but this has no effect.



How can we open several Tabs with different pages and switch between them without reloading?



Greets

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 23 Aug 2012, 05:26 PM
Hi David,

I am not sure why you get javascript errors, but in order to make the tabs not relad their content, you can set the RadPaneGroup.IsContentPreserved property to True. However, please keep in mind that at the moment this property doesn't work well when the tabs display an HtmlPlaceholder with KeepContentInMemory=True. This is why you can try setting only the IsContentPreserved property to True.

You can also have a look at our RadRichTextBox control as it can be used instead of an HtmlPlaceholder in many scenarios. 

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Daniel Knoll
Top achievements
Rank 1
answered on 04 Sep 2012, 11:59 AM
Hi Tina,

Thanks for your help. But setting the IsContentPreserved property to True hasn't changed anything.

We want to display Azure Service Reports  in the HtmlPlaceholder so we can't use RadRichTextBox. I have added an Example in which two websites are displayed in HtmlPlaceholder and RadPaneGroup. If you switch between those two Tabs, the RadHTMLPlaceHolder reloads the displayed page (whether RadPaneGroup.IsContentPreserved is True or False) on each switch. If both sides are loaded (fast switch between both tabs) there are many Javascript errors.

How can we avoid this reload?

Greets
Example: http://www.file-upload.net/download-4750989/RadHtmlPlaceHolderTest.zip.html

0
Zarko
Telerik team
answered on 07 Sep 2012, 08:37 AM
Hello David,
A possible workaround for you problem is to remove the IsContentPreserved = true and set KeepContentInMemory = True to both of you HtmlPlaceholders:
<telerik:RadPaneGroup>
    <telerik:RadDocumentPane Header="RadPane 1">
        <telerik:RadHtmlPlaceholder KeepContentInMemory="True" SourceUrl="http://www.telerik.at" />
 
    </telerik:RadDocumentPane>
    <telerik:RadDocumentPane Header="RadPane 2">
        <telerik:RadHtmlPlaceholder KeepContentInMemory="True" SourceUrl="http://www.telerik.com/community/forums/silverlight/htmlplaceholder/htmlplaceholder-in-raddocking-control-reload.aspx" />
    </telerik:RadDocumentPane>
</telerik:RadPaneGroup>
If you have further questions please feel free to ask.

Kind regards,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
HTMLPlaceHolder
Asked by
Daniel Knoll
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Daniel Knoll
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or