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

Not working with Layout page in MVC

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 10 Mar 2014, 04:35 PM
Hello,

My chart is working perfectly well if I don't include a Layout page (ASP.NET MVC).  However, once I add our main layout page to the mix, the chart no longer renders.  In Firebug it's saying "ReferenceError: jQuery is not defined".  I have included jQuery and the Kendo libraries in both the layout page, as well as the View... to no avail.  Has anyone seen this before?

Thanks!

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 12 Mar 2014, 10:15 AM
Hello,

This error might indicate that you're including jQuery twice. The Kendo UI widgets register with the first instance, but not with the second.
Also check that the reference to jQuery is placed before the Chart, e.g. in the <head> tag.

You can double check with the generated page output to ensure that the jQuery script is included once and in the correct order.

Regards,
T. Tsonev
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
General Discussions
Asked by
Justin
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or