documentation bug or question

2 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    20 posts
    Member since:
    Oct 2014

    Posted 01 Jun 2016 Link to this post

    On this page - there is code to close the window as below.

      $(".close-button").click(function(){// call 'close' method on nearest kendoWindow $(this).closest("[data-role=window]").kendoWindow("close");});


    Question - is kendoWindow("close") a proper call? or data("kendoWindow").close() would be right way to code here? This is in your documentation so making sure what is suggested approach.

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2310 posts

    Posted 03 Jun 2016 Link to this post

    Hello Piyush Bhatt,

    Yes, the two calls are internally equivalent, but we generally recommend the usage of


    Thank you for pointing this example. We will modify it to use this type of invocation to remove the confusion.

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