title: ERROR: Kendo"Something" is not a function
body: <p>So I am trying to convert my plain HTML/Javascript site (which works fine) into an ASP MVC4 project. What I do is get and XML and use and XSLT to transform. I litreally use the code <a href="https://stackoverflow.com/questions/7471391/using-xslt-in-asp-net-mvc-3">from here</a> to do that </p>
  
  <p>In my <code>_Layout.cshtml</code> I use razor to load the resource</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;@ViewBag.Title&lt;/title&gt;  
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;        
   ... things...
    @Scripts.Render("~/bundles/kendoScripts")
    @Scripts.Render("~/bundles/customScript") 
    @Styles.Render("~/Content/themes/Kendo")
    @Styles.Render("~/Content/themes/customCSS")   
  </code></pre>
  
  <p>my view that uses the layout is very straight forward, this is all that is in the page</p>
  
  <pre><code>@using Summ.ExtensionCode
  @model SumMVC.Models.SummaryModel
  @{
    ViewBag.Title = "_Summary";
    Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;div data-role="content"&gt;
  @Html.RenderXml(Model.ProgramFilename, Model.StylesheetFilename, Model.Parameters)
  &lt;/div&gt;
  </code></pre>
  
  <p>In <code>@Scripts.Render("~/bundles/customScript")</code>, is a JS file, renderpage.js that has this bit of code <code>$(this).kendoDropDownList();</code> where this is a select element. But I am getting a error that <code>.kendoDropDownList();</code> is not a function. The error from firebug: <code>TypeError: $(...).kendoDropDownList is not a function</code> and the errror from GoogleChrome <code>Uncaught TypeError: Object [object Object] has no method 'kendoDropDownList'</code>. It seems that in my bundle the JS file kendo.all.min.js is not begin loaded here is what is looks like</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/kendoScripts")
              .Include("~/Scripts/kendoui/kendo.web.min.js")
              .Include("~/Scripts/kendoui/kendo.all.min.js")
              );
  
  ....
  bundles.Add(new ScriptBundle("~/bundles/customScript")
             .....
              .Include("~/Scripts/SummaryScript/renderpage.js")
               ....                       
              );
  </code></pre>
  
  <p>I am assuming that perhaps the code is being executed before kendo.all.min.js is done loading, but as you can see above renderpage.js is after kendo. Any ideas or insight? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I forgot to add that when I manually load the resource in the MVC project in the head tag</p>
  
  <pre><code>&lt;script type="text/javascript" src="~/Scripts/kendoui/kendo.web.min.js"&gt;&lt;/script&gt;       
  &lt;script type="text/javascript" src="~/Scripts/kendoui/kendo.all.min.js"&gt;&lt;/script&gt;
  ....
  &lt;script type="text/javascript" src="~/Scripts/ExecSummaryScript/renderpage.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>it works fine.</p>
  
  <p><strong>Update2</strong></p>
  
  <p>Turns out the Kendo JS file is not being loaded at all. I check the resource in the dev console and notice that it not even there.Upon closer inspection I notice that all resources are loaded except some <code>.min.js</code> files. There are a few loaded but some that are not loaded are jquery-ui-1.10.3.min.js, and jquery.browser.min.js.</p>