Jun 01, 2013, 4:55 PM
(Normal) HtmlHelper in tabpanel
Hey all,
Would it be possible to add a non ext.net partial view to a tabpanel?
I.E. I have the following partial view:
Thanks in advance!
Would it be possible to add a non ext.net partial view to a tabpanel?
I.E. I have the following partial view:
@model ReleaseManager.Models.ReleaseModel
@using (Html.BeginForm("PublishSave", "Release", FormMethod.Post, new { id = "ReleasePublishForm" }))
{
@Html.HiddenFor(model => model.Release.Id)
@Html.HiddenFor(model => model.Release.Description)
@Html.HiddenFor(model => model.Release.ReleaseDate)
@Html.HiddenFor(model => model.Release.Checklist.Id)
@Html.HiddenFor(model => model.Release.Checklist.Status)
<table class="checklist">
<thead>
<tr>
<th>#</th>
<th>Description</th>
<th>Duration</th>
<th>Start</th>
<th>End</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@Html.EditorFor(model => model.Release.Checklist.Points)
</tbody>
</table>
<div class="buttonbar">
<input type="submit" value="Save" />
</div>
}
And want to add that view into a tab:@Html.X().Panel().ID("panelcontainer").MarginSpec("10 10 10 10").TopBar(topbar => topbar.Add(Html.X().Toolbar().Items(toolbar =>
{
toolbar.Add(Html.X().TabStrip().ID("ReleaseTabs").Items(tabs =>
{
tabs.Add(Html.X().Tab().TabID("ChecklistTab").ActionItemID("Checklist").Text("Checklist"));
}));
}))).Items(panelitems =>
{
panelitems.Add(Html.X().Container().ID("Checklist").ItemsFromPartial("Checklist", Model));
})
This works however the content from the partial view is loaded outside of the Ext.Panel and therefor is not inside the tab.Thanks in advance!