Just to explain what I am trying to achieve, here's the code that I have:
The page dynamically loads user-controls "NoteControl.ascx" and adds them to asp:Panel with ID="pnlItems". Page also has a window which is not displayed by default.
<asp:Panel ID="pnlItems" runat="server" />
<asp:UpdatePanel ID=upWinPanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
<ContentTemplate>
<ext:Window ID="windowItem" runat="server" Title="<%$ Resources:LanguageFile, Item %>" MinHeight="600" MinWidth="800" Closable="True" Showonload="false" CloseAction="Hide" Maximizable="true" Modal="true" HideParent="true">
<ext:AnchorLayout ID="anchLayoutMaximizedWin" runat="server">
<ext:Anchor Horizontal="100%" Vertical="100%">
<ext:Panel ID="pnlContent" runat="server" />
</ext:Anchor>
</ext:AnchorLayout>
</ext:Window>
</ContentTemplate>
</asp:UpdatePanel>
Here's the markup code of "NoteControl.ascx":
<ext:Panel ID="pnlNoteHeader" runat="server" AutoHeight="true" BaseCls="x-panel-header">
<Content>
<div style="float:right;clear:none;text-align:right;">
<ext:Button ID="noteMaximize" runat="server" AutoPostBack="false" Icon="PageWhiteMagnify" StyleSpec="display:inline;" />
</Content>
</ext:Panel>
<ext:Panel ID="pnlNoteContent" runat="server" BodyStyle="max-height:150px;overflow-y:scroll;padding:5px;" />
The goal is when the control's noteMaximize button is clicked, take the html of pnlNoteContent and put it into pnlContent on the client. As you might have noticed, the windowItem is wrapped in an update panel, so I am able to do this with a round-trip to the server, which is totally unnecessary, since the client has all the information already. The problem I ran into is that html property of ext:Panel is readonly :( Is there any easy way to do this, or should I just live with the UpdatePanel and do an extra round-trip?
Thank you!