Forms
The TabStrip enables you to use forms.
To include Html.BeginForm()
or Ajax.BeginForm()
in a TabStrip .Content()
, use the .Render()
method of the TabStrip. Otherwise, the form will be rendered outside the TabStrip and the data will not be submitted correctly. The following implementation is not required if the form is placed inside a partial view which is loaded with Ajax through .LoadContentFrom()
, or if a plain HTML <form>
tag is used.
@{Html.Kendo().TabStrip()
.Name("TabStrip1")
.Items(tabstrip =>
{
tabstrip.Add().Text("Tab 1")
.Content(@<text>
@using (Ajax.BeginForm("...", "..."))
{
...
}
</text>);
}).Render();
}