data("kendoNotification") returns Undefined in ready function

3 posts, 0 answers
  1. michael
    michael avatar
    2 posts
    Member since:
    Jun 2014

    Posted 10 Nov 2014 Link to this post

    I've defined a notification on my JSP page using the jsp taglib, and it works great if I'm using it in javascript from button actions or click events.  But if I try to access it as part of my ready function processing the following call returns 'undefined'.
    var notification = $("#notification").data("kendoNotification");
    It almost makes me think the widget hasn't fully initialized or something.  I want to avoid having to define everything via JS in the ready function, since that defeats the purpose of even having the taglib.  Am I doing something wrong, or is this not possible?
    Thanks
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 12 Nov 2014 Link to this post

    Hello Michael,

    I already replied to this query in the support ticket you opened. Basically this could happen in case the jQuery selector is not correct, the code is executed before the widget's initialization took place or in case an older JavaScript files are used.

    Regards,
    Alexander Popov
    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. michael
    michael avatar
    2 posts
    Member since:
    Jun 2014

    Posted 12 Nov 2014 in reply to Alexander Popov Link to this post

    Yeah, sorry. I posted this before thinking to file a support ticket.  I replied to you there.  We can continue the conversation there.
    Thanks
Back to Top