Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Let's try building up from a minimal working version. You said you have the following in the directory:</p> <ul> <li>Scripts/kendo-ui/* (all the kendo files, including the mvc one)</li> <li>Scripts/require.js</li> <li>Scripts/jquery-2.0.3.min.js</li> </ul> <p>To get that to load all the dependencies, you might try something like this:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;script type="text/javascript" src="~/Scripts/require.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; require.config({ baseUrl: '@Url.Content("~/Scripts")', paths: { 'jquery': 'jquery-2.0.3.min', 'kendo': 'kendo-ui/kendo.all.min', 'kendo-mvc': 'kendo-ui/kendo.aspnetmvc.min' }, shim: { 'jquery': { exports: 'jQuery' }, 'kendo-mvc' : { deps: ['kendo'] //kendo needs to be loaded before kendo-mvc? } } }); require(['jquery', 'kendo', 'kendo-mvc'], function ($) { }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I played around with putting it in a <a href="http://jsfiddle.net/UUnpE/2/" rel="nofollow">jsFiddle</a>, but ran into a number of problems (Kendo actually requires jQuery 1.9.0, etc.) that you can probably resolve on your own.</p> <p>The key seems to be that your last version is loading kendo.data, kendo.combobox, and a bunch of other files that aren't referenced anywhere. Figuring out where those requests came from would help solve this mystery.</p> <p><strong>Update</strong>: Here's one possibility. If kendo-mvc is loading dependencies like this:</p> <pre><code>["./kendo.data.min","./kendo.combobox.min","./kendo.multiselect.min","./kendo.‌​validator.min"] </code></pre> <p>Then it may fail because RequireJS looks for dependencies relative to the name of the module, which has been aliased as kendo-mvc. Let's try not renaming it (see below), and see if that works:</p> <pre><code>&lt;script type="text/javascript"&gt; require.config({ baseUrl: '@Url.Content("~/Scripts")', paths: { 'jquery': 'jquery-2.0.3.min', 'kendo-ui/kendo': 'kendo-ui/kendo.all.min', 'kendo-ui/kendo-mvc': 'kendo-ui/kendo.aspnetmvc.min' }, ... require(['jquery', 'kendo-ui/kendo', 'kendo-ui/kendo-mvc'], function ($) { }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload