Feb 21, 2013, 10:55 AM
Form Panel + ContentFrompage not working
Hi,
I have a form panel like so:
@model MemoFormModel
How do I bring the content from memoform into the form panel ?
I have a form panel like so:
@(Html.X().FormPanel()
.Method(HttpMethod.POST)
.ID("AddMemoForm")
.Title("Add Memo")
.Cls("memo-form")
.Frame(false)
.Border(false)
.ContentFromPage(this, "~/Views/Common/MemoForm.cshtml")
)
The Memo form view is:@model MemoFormModel
<div class="memo-form">
<table class="details" cellpadding="0" cellspacing="0">
<tr>
<td class="data-item">@Html.X().TextFieldFor(model => model.User)</td>
<td>@Html.X().Button().Text("...")</td>
</tr>
<tr>
<td class="data-item">@Html.X().TextFieldFor(model => model.Subject)</td>
</tr>
<tr>
<td class="data-item">@Html.X().TextFieldFor(model => model.Caption)</td>
</tr>
</table>
</div>
However the view does not show. Using developer tools I can see the view is brought into the page but given a class of x-hidden. I tried removing the cls but that did not work. If I use ItemsFromPage it shows the items but I lose my HTML tags as you'd expect.How do I bring the content from memoform into the form panel ?