This question is locked. New answers and comments are not allowed.
I have tried all variations I have found in the forums and anything else I could find online on how to get a partial view to display in a tab on the telerik tablstrip. My partial view renders fine, but I cannot get the tabstrip to render it, I continue to get compile errors.
Currently I have the below in my view, you can see that I am trying to get the _SegmentEdit partial view to display in the tabstrip, below the tabstrip I am rendering the same view, when I comment out the tabstrip entirely, the view renders fine outside of the tabstrip, but all the different syntax and formats I have tried inside the tab item Content has not worked and I have yet to get the tabstrip to work with my partial view. Please Help.
@(Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
tabstrip.Add()
.Text("ASP.NET MVC")
.Content(() =>
{
Html.Partial("_SegmentEdit", Model);
});
tabstrip.Add()
.Text("Silverlight");
})
.SelectedIndex(0)
.Render()
)
<div>@Html.Partial("_SegmentEdit", Model)</div>
The current error with the above is, but I have tried Html.Partial, Html.RenderPartial and all syntax variations for the .Content I could find.
error CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments c:\IDMI\FileSelect\ASP_MVC3\FileSelect.Mvc\FileSelect.Web\Views\Segment\_Edit.cshtml(38,9): error CS1503: Argument 1: cannot convert from 'void' to 'System.Web.WebPages.HelperResult'
Currently I have the below in my view, you can see that I am trying to get the _SegmentEdit partial view to display in the tabstrip, below the tabstrip I am rendering the same view, when I comment out the tabstrip entirely, the view renders fine outside of the tabstrip, but all the different syntax and formats I have tried inside the tab item Content has not worked and I have yet to get the tabstrip to work with my partial view. Please Help.
@(Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
tabstrip.Add()
.Text("ASP.NET MVC")
.Content(() =>
{
Html.Partial("_SegmentEdit", Model);
});
tabstrip.Add()
.Text("Silverlight");
})
.SelectedIndex(0)
.Render()
)
<div>@Html.Partial("_SegmentEdit", Model)</div>
The current error with the above is, but I have tried Html.Partial, Html.RenderPartial and all syntax variations for the .Content I could find.
error CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments c:\IDMI\FileSelect\ASP_MVC3\FileSelect.Mvc\FileSelect.Web\Views\Segment\_Edit.cshtml(38,9): error CS1503: Argument 1: cannot convert from 'void' to 'System.Web.WebPages.HelperResult'