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

RadHtmlPlaceHolder State Maintenance

1 Answer 42 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 06 Apr 2012, 04:51 PM
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?

Thanks,
- Aaron

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 11 Apr 2012, 09:17 AM
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.

Greetings,
Petar Mladenov
the Telerik team

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

Tags
HTMLPlaceHolder
Asked by
Aaron
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or