This question is locked. New answers and comments are not allowed.
I was trying to load the contents of a tabstrip using the .Content method - specifying a partial view something like ...
the above populates the 'content' of the tabstrip with the partial view as expected, however this made the tabstrip creation code a bit messy so I thought I'd try using LoadContentFrom method calling an action which would return the same partial view.
However I just get the partial view returned - I was expecting the 'LoadContentFrom' method to do something similar to the .Content method - am I misunderstanding something here?
Thanks
Mark
.Items(items => { items.Add() .Text("tab1") .Action("Action", "Controller", new { Id = Model.Id }) .Content(() => {%><div id="div1"> <% Html.RenderPartial("PartialViewName", Model); %></div><%});the above populates the 'content' of the tabstrip with the partial view as expected, however this made the tabstrip creation code a bit messy so I thought I'd try using LoadContentFrom method calling an action which would return the same partial view.
.Items(items =>{ items.Add() .Text("All Studies") .LoadContentFrom("Study", "DashBoard", new { studyId = Model.StudyId });However I just get the partial view returned - I was expecting the 'LoadContentFrom' method to do something similar to the .Content method - am I misunderstanding something here?
Thanks
Mark