Feb 22, 2010, 9:37 PM
[1.0] Panel RenderTo
Hello,
I was wondering what the possibility would be to open the RenderTo property of the Panel control to allow overriding the rendering routine and render in a previously established HTML control or an existing Panel.
For example:
Index.aspx:
Thanks for the consideration.
Cheers,
Timothy
I was wondering what the possibility would be to open the RenderTo property of the Panel control to allow overriding the rendering routine and render in a previously established HTML control or an existing Panel.
For example:
Index.aspx:
<ext:Panel ID="Existing" runat="server">
<Content>
Waiting to load content
</Content>
</ext:Panel>
<ext:Panel ID="NewPanel" runat="server" RenderTo="Existing">
<Content>
New Panel Loaded!
</Content>
</ext:Panel>
When this page executes there will only be one panel rendered, Existing, and the content of the NewPanel will be inside of it. This would be extremely useful for partials in MVC :)Thanks for the consideration.
Cheers,
Timothy