The described behavior is examined because in the My Portal online demo a hidden UpdatePanel is used in order to help with saving state when minimizing, moving and closing docks. As a result the docking zones are not updated and the HTML elements of the RadDocks are persisted on the page.
If you want to clear the remaining divs, you can utilize only one UpdatePanel, wrapping the RadDockZones, and attach the AsyncPostBackTriggers in the code-behind to this update panel. This way the empty elements, left by the RadDocks, will be cleared when the docks are closed. In order to achieve this, also a new Ajax request will have to be send, for example you can add a new dock, because when a RadDock is closed, its Closed
property is set to true
, but on Page.Init
the old ViewState is preserved and the RadDock is recreated.
I hope the provided solution helps. Don't hesitate to contact us again should you encounter more difficulties.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>