This question is locked. New answers and comments are not allowed.
I try to Orchard project, using the MVC Grid display user list, but an exception occurs
<%
Html.Telerik().Grid(Model.Rows)
.Name("Grid")
.EnableCustomBinding(true)
.DataKeys(keys => keys.Add(u => u.UserPart.Id))
.Columns(columns =>
{
columns.Bound(u => u.UserPart.UserName).Width(160).Title("UserName");
columns.Bound(u => u.UserPart.Email).Title("Email");
})
.Sortable()
.Scrollable()
.Pageable()
.Render();
%>
When I comment out the .Rander (), you can normally use, but can not display Grid
<%
Html.Telerik().Grid(Model.Rows)
.Name("Grid")
.EnableCustomBinding(true)
.DataKeys(keys => keys.Add(u => u.UserPart.Id))
.Columns(columns =>
{
columns.Bound(u => u.UserPart.UserName).Width(160).Title("UserName");
columns.Bound(u => u.UserPart.Email).Title("Email");
})
.Sortable()
.Scrollable()
.Pageable()
.Render();
%>
When I comment out the .Rander (), you can normally use, but can not display Grid