RadHtmlPlaceHolder State Maintenance

2 posts, 0 answers
  1. Aaron
    Aaron avatar
    6 posts
    Member since:
    Nov 2008

    Posted 06 Apr 2012 Link to this post

    Hello Telerik Gurus,

    I have noticed that if I hide/show the RadHtmlPlaceHolder control that the page I loaded is automatically refreshed. Why is that? We have a javascript based mapping environment baked into the page that is loaded and the map;s state is not maintained between the showing and hiding of the place holder. My guess is that because the IFRAME is destroyed when the control is hidden and recreated when it is shown, thus requiring a SourceUrl refresh, is that right?

    I've tried setting KeepContentInMemory to TRUE on the place holder but that doesn't seem to remember the state of the IFRAME.

    What plans if any do you have for maintaining state in the IFRAME? Is this possible with any other control you guys offer?

    - Aaron
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 11 Apr 2012 Link to this post

    Hello Aaron,

    Currently, when RadHtmlPlaceholder is Collapsed, it is actually being removed from the DOM tree of the aspx page. But there is a workaround for this, instead of collapsing it, you can set its Height and MinHeight to 0, then revert them. Please check this out in the attached project and let us know if it satisfies you.

    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top