Kendo Splitter与Treeview嵌套

时间:2015-09-24 09:49:07

标签: kendo-ui treeview nested splitter

我收到错误:

  

代表' System.Action'不带1个参数

创建Splitter,其中部分视图在Splitter的一个窗格内呈现。该错误位于窗格的Content属性。请建议我解决问题的任何变化

@(Html.Kendo().Splitter()
  .Name("vertical")
  .HtmlAttributes(new { style = "height:900px" })
  .Orientation(SplitterOrientation.Horizontal)
  .Panes(panes =>
  {
      panes.Add()
          .HtmlAttributes(new { id = "pane1" })
          .Resizable(true)
          .Size("300px")
          .Collapsible(false)
          .Content((@<text><div>@Html.RenderPartial("GetUsers", Model)</div></text>));
  })
)

1 个答案:

答案 0 :(得分:0)

使用以下链接中的信息,我能够解决我的问题。当你必须嵌套kendo UI的容器控件时,你需要为嵌套内容创建一个帮助器方法,并调用helper方法作为容器控件的有效方法。

Kendo widgets two level deep in Razor, inline markup blocks cannot be nested