PDA

View Full Version : [CLOSED] Panel layout type seems to break when using ContentFromPage



machinableed
Apr 26, 2012, 2:32 AM
Hi there,

I'm trying to load a partial view to a Panel using the .ContentFromPage method like so:



@(Html.X().Panel()
.Collapsible(true)
.Layout(LayoutType.Anchor)
.Height(800)
.ContentFromPage(this, "/Views/Shared/_TEST.cshtml")
)

If I remove the layout type parameter, the partial view is displayed as expected (the contents of the partial view doesn't matter - this occurs with plain text too), with the layout type set to a value, the panel always appears empty (the layout type selected doesn't seem to matter - I've tested with anchor, column, fit, container and all have the same result)

Daniil
Apr 26, 2012, 7:20 AM
Hi,

What is the content of the partial view?

If non Ext.NET controls, then you can't use Layout, because only Ext.NET controls are participated in layout logic.

If there are Ext.NET controls, then it should be ok. Probably, you will need to set up

AnchorHorizontal="100%"
for top level Ext.NET controls within the partial view. It's for AnchorLayout.