Kendo ui 如何将剑道网格与柱模板一起使用

Kendo ui 如何将剑道网格与柱模板一起使用,kendo-ui,kendo-grid,Kendo Ui,Kendo Grid,我正在尝试将动作链接放置到网格单元中,如下所示: 得到: System.NotSupportedException 那么,我在哪里可以找到一个稳定的和完整的将列模板与剑道UI网格一起使用的示例呢?您需要在razor模板代理中使用项。它是隐式变量名。将代码更改为: columns.Template(@<text> @Html.ActionLink("Edit", "Home", new { id = item.ProductID }) </text>); colu

我正在尝试将动作链接放置到网格单元中,如下所示:

得到:

System.NotSupportedException


那么,我在哪里可以找到一个稳定的和完整的将列模板与剑道UI网格一起使用的示例呢?

您需要在razor模板代理中使用
。它是隐式变量名。将代码更改为:

columns.Template(@<text>
    @Html.ActionLink("Edit", "Home", new { id = item.ProductID })
</text>);
columns.Template(@
@ActionLink(“编辑”、“主页”,新的{id=item.ProductID})
);

您链接到的帮助主题错误,将很快修复。

您需要在razor模板代理中使用
项。它是隐式变量名。将代码更改为:

columns.Template(@<text>
    @Html.ActionLink("Edit", "Home", new { id = item.ProductID })
</text>);
columns.Template(@
@ActionLink(“编辑”、“主页”,新的{id=item.ProductID})
);

您链接到的帮助主题错误,将很快修复。

您尝试过吗<代码>列.Template(@@Html.ActionLink(“编辑”,“主页”,新建{id=@item.ProductID}))列.Template(@@Html.ActionLink(“编辑”,“主页”,新建{id=@item.ProductID}))我应该把我的评论作为答案;)。我应该把我的评论作为答案;)。
columns.Template(p => {
    Html.ActionLink("LinkTitle", "Edit", "Home", new
    {
        id = p.ProductID
    });
});
columns.Template(@<text>
    @Html.ActionLink("Edit", "Home", new { id = item.ProductID })
</text>);