Notification() not defined

4 posts, 1 answers
  1. GCS
    GCS avatar
    20 posts
    Member since:
    Apr 2013

    Posted 15 Jun 2014 Link to this post

    I am trying to use the Notification control. However, when attempting to use it, the following compiler error is thrown: 

     CS1061: 'Kendo.Mvc.UI.Fluent.WidgetFactory<dynamic>' does not contain a definition for 'Notification' and no extension method 'Notification' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.WidgetFactory<dynamic>' could be found (are you missing a using directive or an assembly reference?)

    I believe I am using all the correct Kendo libraries. 

    My declaration is as follows: 

        @(Html.Kendo().Notification().Name("popupNotification"))


    I am using the following scripts and css files: 

    <link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" type="text/css" /><br><link href="@Url.Content("~/Content/kendo/2014.1.416/kendo.common.min.css")" rel="stylesheet" type="text/css" /><br>    <link href="@Url.Content("~/Content/kendo/2014.1.416/kendo.dataviz.min.css")" rel="stylesheet" type="text/css" /><br> <link href="@Url.Content("~/Content/kendo/2014.1.416/kendo.default.min.css")" rel="stylesheet" type="text/css" /><br> <link href="@Url.Content("~/Content/kendo/2014.1.416/kendo.dataviz.default.min.css")" rel="stylesheet" type="text/css" /><br><script src="@Url.Content("~/Scripts/kendo/2014.1.416/jquery.min.js")"></script><br><script src="@Url.Content("~/Scripts/kendo/2014.1.416/kendo.all.min.js")"></script><br><script src="@Url.Content("~/Scripts/kendo/2014.1.416/kendo.aspnetmvc.min.js")"></script><br><script src="@Url.Content("~/scripts/kendo.modernizr.custom.js")"></script><br><script src="@Url.Content("~/Scripts/kendo.web.ext.js")"></script><br><link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />


    Any ideas? Thank you. 




  2. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 16 Jun 2014 Link to this post

    Hello Dave,

    Most probably you have not updated the Kendo.MVC.dll file in your project. Please remove the old one and include the one  that matches your scripts version.

    If the problem still persists please provide us with a runnable sample, so we can reproduce the issue and advise you further.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. GCS
    GCS avatar
    20 posts
    Member since:
    Apr 2013

    Posted 16 Jun 2014 Link to this post

    that was it, thank you! 
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 17 Jun 2014 Link to this post

    Hi Dave,

    I am glad to hear that the problem is resolved.

    In case you have any further questions, please do not hesitate.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready