I am getting no intellisense and design time errors when using the Bound method to declare columns. When I run the site it works fine, but isn't the whole point of using the lambda instead of magic strings so I can get accurate design time errors?
In the following code, I get design time errors for each of the lambdas in the columns.Bound declarations. Am I doing something wrong?
In the following code, I get design time errors for each of the lambdas in the columns.Bound declarations. Am I doing something wrong?
@(Html.Kendo().Grid<KBMaxLive.Domain.KBUser>()
.Name("grid")
.Columns(columns => {
columns.Bound(u => u.Email).ClientTemplate("<a>#: Email #</a>");
columns.Bound(u => u.IDUserRole);
columns.Bound(u => u.FirstName);
columns.Bound(u => u.LastName);
columns.Bound(u => u.IsOnLine);
})
.Pageable(paging => paging.Enabled(true).PageSizes(new int[]{5, 10, 20, 50}))
.Sortable()
.Filterable()
.Groupable()
.Selectable(select => select.Type(GridSelectionType.Row).Mode(GridSelectionMode.Multiple))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Users_Read", "Users"))
.PageSize(20))
)