This is a migrated thread and some comments may be shown as answers.

Kendo window customized close button

2 Answers 117 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jayalakshmi
Top achievements
Rank 1
Jayalakshmi asked on 24 May 2012, 02:51 PM
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 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 29 May 2012, 01:30 AM
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.
0
Michael
Top achievements
Rank 1
answered on 24 Sep 2012, 08:34 PM
It worked for me. Thanks!!
Tags
Window
Asked by
Jayalakshmi
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Veteran
Michael
Top achievements
Rank 1
Share this question
or