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

Unhandled Exception in lendo.all.min.js

3 Answers 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 25 Apr 2013, 10:08 PM
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.

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>

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 26 Apr 2013, 05:52 AM
Hello,

Can you please prodice your Model  class information ?

Note : Please try to find that in which column you get this issue.

Let me know if any concern.

Thanks,
Jayesh Goyani
0
Mike
Top achievements
Rank 1
answered on 26 Apr 2013, 01:18 PM
Jayesh,

Currently it's just bound to a DataTable using results from a stored procedure executed on the database so I don't have a specific model.

As for the column causing the problem, the first 5 column names are in English and the rest are in French - it looks like it is bombing when it hits the first French column name. 

Please let me know if any of this helps.

Thanks in advance,
mike...
0
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Apr 2013, 12:47 PM
Hello,

I have not any idea about this.

But if possible then can you please submit your project/code, so we will try to resolved this issue?

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Share this question
or