Here is the code:
I put it in RadCodeBlock at first, every thing works fine. I can open it, close it, and reopen it, close again...
MyWindow is the ID of RadWindow
function ShowWindow(url, width, height) {
alert("test");
var oWnd = $find($telerik.$("[id$='MyWindow']").attr("id"));
oWnd.show();
oWnd.setUrl(url);
oWnd.setSize(width, height);
oWnd.center();
}
but after I move this part to external JavaScript file and reference it from the original RadCodeBlock, I can open and close the radwindow, but after closing it, I cannot open it again anymore, but the alert("test") is still working. Can anyone do me a favor to tell me what's the problem in it? Thanks a lot!
I put it in RadCodeBlock at first, every thing works fine. I can open it, close it, and reopen it, close again...
MyWindow is the ID of RadWindow
function ShowWindow(url, width, height) {
alert("test");
var oWnd = $find($telerik.$("[id$='MyWindow']").attr("id"));
oWnd.show();
oWnd.setUrl(url);
oWnd.setSize(width, height);
oWnd.center();
}
but after I move this part to external JavaScript file and reference it from the original RadCodeBlock, I can open and close the radwindow, but after closing it, I cannot open it again anymore, but the alert("test") is still working. Can anyone do me a favor to tell me what's the problem in it? Thanks a lot!