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

When I try to create a grid, I get an error: SCRIPT1002: Syntax error.

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
folkwulf
Top achievements
Rank 1
folkwulf asked on 26 Feb 2018, 02:44 PM

Call code:

@(
            Html.Kendo().Grid<HomeFlat>()
                .Name("TestGridName")
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .ServerOperation(true)
                    .Model(model =>
                        {
                            model.Id(p => p.TestProperty);
                            model.Field(p => p.TestProperty).Editable(false);
                        }
                    )
                    .Read(read => read.Action("Action_Test", "Home"))
                )
        )

 

The error you get with the build:

Critical error was detected at line 74, column 9 in http://localhost:XXXX/.
SCRIPT1002: Syntax error

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 01 Mar 2018, 09:12 AM
Hello,

I have examined the code and the Grid configuration seems correct. However, would you try to remove any other components from the View and leave only the Grid. Try to run the project after that and see if the error is still replicated. In case it is would you send us a sample project where the behavior is observed. This will enable us to examine the issue locally and look for its cause.


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
folkwulf
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or