We have a WebSite and it uses Telerik and AjaxControlToolikit components both. But we faced a brand new problem.
Problem: If there is an "AjaxControlToolkit.dll" in your Bin folder. RadWindow.OnClientClose event fires only once time.
To reproduce this error, you can use "\Live Demos" samples shipped with Telerik.
Steps to reproduce:
Set startup page to "\Live Demos\Window\Examples\Default\DefaultVB.aspx" and,
add "alert(oWnd);" after the "function OnClientClose(oWnd) {".
After the changes code must be shown like this:
Then run the sample.
Press "Open" button for three times to open three "bing.com" windows. And try to close one by one opened windows.
So far, there is no problem. Every click to "X" button, will fire "OnClientClose" event.
Now; add the "AjaxControlToolkit.dll" to the "Live Demos\Bin" folder. And run same example again.
When you close the first Bing Window you'll see an alert. But when you try to close second ( or third, or more) Bing window "OnClientClose" event will be not fired.
Information:
Visual Studio 2010 - .NET 4.0 Web Site Project
Telerik.Web.UI : 2011.3.1115.40
AjaxControlToolkit.dll: 4.1.51116.0 (latest)
Problem: If there is an "AjaxControlToolkit.dll" in your Bin folder. RadWindow.OnClientClose event fires only once time.
To reproduce this error, you can use "\Live Demos" samples shipped with Telerik.
Steps to reproduce:
Set startup page to "\Live Demos\Window\Examples\Default\DefaultVB.aspx" and,
add "alert(oWnd);" after the "function OnClientClose(oWnd) {".
After the changes code must be shown like this:
function
OnClientClose(oWnd) {
alert(oWnd);
//newly added line
//Get the title of the active RadWindow
var
title = oWnd.get_title();
.....
.....
Then run the sample.
Press "Open" button for three times to open three "bing.com" windows. And try to close one by one opened windows.
So far, there is no problem. Every click to "X" button, will fire "OnClientClose" event.
Now; add the "AjaxControlToolkit.dll" to the "Live Demos\Bin" folder. And run same example again.
When you close the first Bing Window you'll see an alert. But when you try to close second ( or third, or more) Bing window "OnClientClose" event will be not fired.
Information:
Visual Studio 2010 - .NET 4.0 Web Site Project
Telerik.Web.UI : 2011.3.1115.40
AjaxControlToolkit.dll: 4.1.51116.0 (latest)