ajaxasp.net-mvckendo-uipartial-viewsviewrendering

Uncaught ReferenceError: '' is not defined


Using: VS'12, asp.net MVC4 Internet Application, MVC, EF Code First + Kendo UI

Error

Uncaught ReferenceError: filterCountys is not defined
(anonymous function)

However It is defined ... ???

enter image description here

I'm unsure if it makes a difference but this code is in a PartialView called from an Ajax Script


Solution

  • Try putting the scripts back to the main View, they must be on your Index View( the Main View ) not the Partial View. This is why there not showing up correctly.

    I'm not certain for the reason but if i'd guess. Your partial either isn't loading in the scripts or they must be available from the Main / Index View.