Mar 04, 2012, 2:31 AM
Can not apply layout using RenderExtPartial
I write something like this:
So, how can I set the layout when using RenderExtPartial in <Content>? Or there are other solutions?
Thanks a lot.
<ext:Viewport runat="server" Layout="Fit" AutoScroll="true">
<Items>
<ext:Panel id='ContentPanel' runat="server" Header="false" AutoScroll="true">
<Content>
<%= Html.RenderExtPartial("MyPartial") %>
</Content>
</ext:Panel>
</Items>
<ext:ViewPort>
MyPartial<ext:FormPanel>
...
</ext:FormPanel>
In this case, I want that the FormPanel rendered by Ext can fit the Viewport, but when I set the ContentPanel's Layout='FitLayout', 'MyPartial' will be rendered at the bottom of the 'ContentPanel', and if I wrap the FormPanel with <ext:FitLayout>, it will be rendered at the top of 'ContentPanel' and only have a little height(about 10px?). If I put the wrapped FormPanel in <Content> directly, it rendered OK!So, how can I set the layout when using RenderExtPartial in <Content>? Or there are other solutions?
Thanks a lot.