csdnceshi62 2014-04-01 04:50 采纳率: 0%
浏览 97

Kendo UI选项卡条

I am using ASP.NET MVC 4 along with Kendo UI. How do I load TabStrip content using Ajax, keeping in mind there are different views (.cshtml).

The last TabStrip item (Action, Controller) never loads.

@(Html.Kendo().TabStrip()
              .Name("tabstrip")
              .Items(tabstrip =>
              {
                  tabstrip.Add().Text("Dimensions & Weights")
                      .Selected(true)
                      .LoadContentFrom(Url.Content("~/Content/tabstrip/ajax/ajaxContent1.html"));

                  tabstrip.Add().Text("Engine")
                      .LoadContentFrom(Url.Content("~/Content/tabstrip/ajax/ajaxContent2.html"));

                  tabstrip.Add().Text("Chassis")
                      .LoadContentFrom("AjaxLoadedPersonalItem", "Home");
                      //.Content(Html.Action("AjaxLoadedPersonalItem", "Home").ToString());
              })
        )
  • 写回答

2条回答 默认 最新

  • weixin_33722405 2014-07-25 10:03
    关注

    Are you sure you have a view call AjaxLoadedPersonalItem under the Views/Home ?

    This is the only reason I can see for this not to load.

    For example I've just tried the code below and it worked fine

    enter image description here

    This is structure I've added to the MVC project

    To the controller enter image description here

    and the respective views

    enter image description here

    And this was the result:

    enter image description here

    Hope it may help

    评论

报告相同问题?