Open is undefined on window

2 posts, 0 answers
  1. jeff
    jeff avatar
    5 posts
    Member since:
    Sep 2006

    Posted 14 Jan 2014 Link to this post

    I have a div called UserInfo. When a user clicks a button, this div should be the window that pops over. The code to do this is:
    $("#AddLegendItem").on("click", function () {
    var dialog = $("#UserInfo");"KendoWindow").open();
    However, it errors out on the second line of the anonymous function saying "unable to get property of 'open' of undefined or null reference.

    I've read through the forums and one person had some duplicate code but I do note. I'm not sure where to go at this point. Ideas?

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2543 posts

    Posted 16 Jan 2014 Link to this post

    Hello Jeff,

    Your code looks fine and I cannot tell you what is the reason for the undefined error. Could you please extract a runnable sample, that we can take a look at and narrow down the issue?

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top