This question is locked. New answers and comments are not allowed.
I cannot get the simple tabstrip example to work in my razor view. I continue to get errors and do not know how to get past them.In the end I need other partial views to be contained in each tab of the TabStrip. I am now just trying to get the TabStrip to do anything and so I removed all Content and still cannot get it to work! Please help. As a last resort i added the ScriptRegistrar at the end of the form, but with or without this I still get the same error.
HttpcompileException error CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments
I have ripped out everything except for the tabstrip in my partial view, here is the contents of my view:
@using Telerik.Web.Mvc.UI
@model FileSelect.ViewModels.MyModel
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Edit", "Segment", FormMethod.Post, new { @class = "EditForm", id = "EditSegmentDetailsForm" }))
{
<p>
<button class="t-button t-button-icontext" type="button"><span class="t-icon t-update"></span>Save</button>
</p>
@Html.ValidationSummary(false)
@(Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
tabstrip.Add()
.Text("ASP.NET MVC");
tabstrip.Add()
.Text("Silverlight");
})
.SelectedIndex(0)
.Render()
)
}
@(Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.js")
.Add("telerik.tabstrip.min.js"))
.jQuery(false))
HttpcompileException error CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments
I have ripped out everything except for the tabstrip in my partial view, here is the contents of my view:
@using Telerik.Web.Mvc.UI
@model FileSelect.ViewModels.MyModel
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Edit", "Segment", FormMethod.Post, new { @class = "EditForm", id = "EditSegmentDetailsForm" }))
{
<p>
<button class="t-button t-button-icontext" type="button"><span class="t-icon t-update"></span>Save</button>
</p>
@Html.ValidationSummary(false)
@(Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
tabstrip.Add()
.Text("ASP.NET MVC");
tabstrip.Add()
.Text("Silverlight");
})
.SelectedIndex(0)
.Render()
)
}
@(Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.js")
.Add("telerik.tabstrip.min.js"))
.jQuery(false))