Kendo window customized close button

3 posts, 0 answers
  1. Jayalakshmi
    Jayalakshmi avatar
    11 posts
    Member since:
    Sep 2012

    Posted 24 May 2012 Link to this post

    Hi,

    1. From a webpage lets say(a.aspx), I have opened a kendo window(which is again a web page say b.aspx)
    2. I have a close button inside b.aspx .
    3. now once i click on the close button , the keno window should be closed.


    Any suggestions.
    Thanks in advance
  2. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 28 May 2012 Link to this post

    You mean a.aspx loads b.aspx in an iframe?

    If thats the case you should be able to put a function inside a.aspx, then call it from b.aspx like this

    a.aspx
    function closeClick(){
      alert("The click happened!");
    };

    b.aspx
    $("#closeButton").click(function(){
       top.closeClick();
    });

    Does that work at all?...I believe it'll only work if both pages are in the same domain though.
  3. Kendo UI is VS 2017 Ready
  4. Michael
    Michael avatar
    2 posts
    Member since:
    Sep 2012

    Posted 24 Sep 2012 Link to this post

    It worked for me. Thanks!!
Back to Top