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

Res file entry used for Kendo Grid Name causing conditional compilation errors in JQuery

1 Answer 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 29 Jul 2014, 11:00 AM
Hi

My grid is defined as follows:

 @(Html.Kendo().Grid<DataModels.Picking.PickingAssignmentItemViewModel>()
        .Name(@UserInterface.Resources.GridRes.GridChild)
        ....
        ....

When I try run in IE I get a conditional compilation error pointing at the name part in Jquery..(version number) on this line
    $.ui.plugin.add("resizable", @UserInterface.Resources.GridRes.Grid, {

Can anyone suggest a way of stopping the error happening? It's incredibly annoying while debugging.

I've read that I need to add @cc_on for these types of errors but the error I get appears in the dynamic version of this JQuery file so I'm unsure where to put it, and it doesn't like it in the actual view.

I'm using MVC Razor and JQuery

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 31 Jul 2014, 07:21 AM
Hello Ian,

I am not sure if this issue is related to Kendo UI. Does the problem appear when you remove the Kendo UI Grid? I am asking you because that line of code is part of jQuery UI and not Kendo UI.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Ian
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or