【发布时间】:2015-03-30 07:53:08
【问题描述】:
如何将 T4MVC 模板与 ASP.NET MVC 的 Kendo UI 助手一起使用?
@(Html.Kendo()
.Grid<SomeModel>()
.Name("T4Grid")
.Columns(col =>
{
col.Bound(wf => wf.Name);
col.Bound(wf => wf.Description);
})
.DataSource(src => src
.Ajax()
.Read(read => read.Action(MVC.Area.Controller.Action())))) // <= an error here
我有一条错误消息:
'Kendo.Mvc.UI.Fluent.CrudOperationBuilder' does not contain a definition for 'Action'
and the best extension method overload 'Kendo.Mvc.UI.NavigatableExtensions.Action(
Kendo.Mvc.INavigatable, System.Web.Routing.RouteValueDictionary)'
has some invalid arguments
【问题讨论】:
-
能否将相关代码添加到您的问题中,这可能有助于理解您的问题
标签: asp.net-mvc kendo-ui kendo-asp.net-mvc t4mvc