telerik / ui-for-aspnet-core-examples

A collection of Telerik UI for ASP.NET Core components examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't bind to datatable

Kevin163 opened this issue · comments

commented

if use this syntax:

Html.Kendo().Grid<DataRowView>()
.Name("test")
.Columns(cols => { cols.Bound("Code"); })

when show this page will throw exception:
InvalidOperationException: Bound columns require a field or property access expression.
Kendo.Mvc.UI.GridBoundColumn<TModel, TValue>..ctor(Grid grid, Expression<Func<TModel, TValue>> expression)

how should i bind to datatable like ui for asp.net mvc?