This is a migrated thread and some comments may be shown as answers.

[Solved] MVC Grid Control can not run in the Orchard project.

0 Answers 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
a c
Top achievements
Rank 1
a c asked on 17 Aug 2010, 11:13 AM
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
Tags
General Discussions
Asked by
a c
Top achievements
Rank 1
Share this question
or