This question is locked. New answers and comments are not allowed.
I keep getting this error when trying to add a Template. It seems pretty straightforward, but it just doesn't want to parse correctly. Can anyone else see the problem here? The error is:
(14): error CS1525: Invalid expression term ')'
Where line 14 is the line after columns.Template
(14): error CS1525: Invalid expression term ')'
Where line 14 is the line after columns.Template
| <%= Html.Telerik().Grid(Model) |
| .Name("ProjectsGrid") |
| .Columns(columns => |
| { |
| columns.Template(u => |
| { |
| %> |
| <%=Html.ActionLink("Details", "Details", new { id = u.ProjectKey })%> |
| <% |
| }); |
| columns.Bound(o => o.Name); |
| columns.Bound(o => o.Sponsor); |
| columns.Bound(o => o.FirstProjectTypeName).Filterable(false).Sortable(false).Title("Type"); |
| columns.Bound(o => o.FirstProjectCategoryName).Filterable(false).Sortable(false).Title("Category"); |
| columns.Bound(o => o.FirstProjectStatusName).Filterable(false).Sortable(false).Title("Status"); |
| columns.Bound(o => o.EnteredBy); |
| columns.Bound(o => o.QualityRank.Designation).Column.Title = "Quality Rank"; |
| columns.Bound(o => o.SafetyRank.Designation).Column.Title = "Safety Rank"; |
| columns.Bound(o => o.BusinessRank.Designation).Column.Title = "Business Rank"; |
| }) |
| .Pageable() |
| .Sortable() |
| .Filterable() |
| .Render(); |
| %> |