HTMLPlaceHolder in RadDocking Control Reload

4 posts, 0 answers
  1. Daniel Grünberger
    Daniel Grünberger avatar
    46 posts
    Member since:
    May 2008

    Posted 21 Aug 2012 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Aug 2012 Link to this post

    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.

  3. DevCraft banner
  4. Daniel Grünberger
    Daniel Grünberger avatar
    46 posts
    Member since:
    May 2008

    Posted 04 Sep 2012 Link to this post

    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

  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 07 Sep 2012 Link to this post

    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.

Back to Top