Hello,
I've got a fairly simple grid implementation (ASP.NET MVC) which uses the Grid and a dynamically bound data source. When I debug the project, I get the following exception: Any assistance would be greatly appreciated.
Here's the implementation of the grid in the index.cshtml:
I've got a fairly simple grid implementation (ASP.NET MVC) which uses the Grid and a dynamically bound data source. When I debug the project, I get the following exception: Any assistance would be greatly appreciated.
Unhandled exception at line 9, column 25731 in http://localhost:11499/Scripts/kendo/2013.1.319/kendo.all.min.js0x800a03ec - JavaScript runtime error: Expected ';'Here's the implementation of the grid in the index.cshtml:
@(Html.Kendo().Grid(Model)<BR> .Name("Grid")<BR> .Columns(columns =><BR> {<BR>foreach (System.Data.DataColumn column in Model.Columns)<BR> {<BR> if (column.ColumnName != "Id")<BR>columns.Bound(column.ColumnName).Groupable(true);<BR> }<BR> })<BR> .Pageable()<BR> .Sortable()<BR> .Scrollable()<BR> .Filterable()<BR> .Groupable()<BR> .ColumnMenu()<BR> .DataSource(dataSource => dataSource<BR> .Ajax()<BR> .Model(model =><BR> {<BR>foreach (System.Data.DataColumn column in Model.Columns)<BR> {<BR> if(column.ColumnName != "Id")<BR>model.Field(column.ColumnName, column.DataType);<BR> } <BR> })<BR> .Read(read => read.Action("Read", "Home"))<BR> .PageSize(20)<BR> )<BR>)<BR>