【问题标题】:Kendo Splitter Nesting with Treeview使用 Treeview 嵌套 Kendo 拆分器
【发布时间】:2015-09-24 09:49:07
【问题描述】:

我收到错误:

委托“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>));
  })
)

【问题讨论】:

标签: kendo-ui treeview nested splitter


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2019-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-26
    • 2013-01-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多