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

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:

.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)

Apr 26, 2012, 7:20 AM

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

for top level Ext.NET controls within the partial view. It's for AnchorLayout.