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

Showing radwindow removes scriptmanager history points

2 Answers 99 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 06 Mar 2011, 11:23 PM

Hello,

I have a problem with radwindow control (using IE8).

I'm using scriptmanager and updatepanel controls in my application (please view the attached sample in http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=400607).
The webpage is saving history points with no problems, until I show the radwindow control. If I open the radwindow then the history points are deleted.
Note: I checked this issue in IE7, it is working with no problems. The problem is in IE8.

I checked with microsoft support this issue. But they told me that it is related some how to the radwindow itself. So plaese, I need your help.

Please look at the following situations:

Good situation:
1) click "Main Attractions" checkbox
2) click "Shopping & Fashion" checkbox
3) Click "Tel Aviv" Linkbutton.
4) Click "Netanya" Linkbutton.
5) Click "Eilat" Linkbutton.
6) Cick the browser back button few times (THIS SHOWS YOU THAT THE HISTORY POINTS ARE SAVED AND USED)
 
Bad Situation 1:
1) click "Main Attractions" checkbox
2) click "Shopping & Fashion" checkbox
3) Click "Tel Aviv" Linkbutton.
4) Click "Netanya" Linkbutton.
5) Click "Eilat" Linkbutton.
6) Click "Full Screen"  button in order to open the map in full screen mode (Radwindow).
7) Cick the browser back button few times (THIS SHOWS YOU THAT THE HISTORY POINTS ARE DELETED)


Bad Situation 2:
1) click "Main Attractions" checkbox
2) click "Shopping & Fashion" checkbox
3) Click "Tel Aviv" Linkbutton.
4) Click "Netanya" Linkbutton.
5) Click "Eilat" Linkbutton.
6) Click the "About" linkbutton and then click close.
7) Cick the browser back button few times (THIS SHOWS YOU THAT THE HISTORY POINTS ARE DELETED)

So, I need to enable the user to go back and forward using the browser buttons even after opeining the radwindow.

Please, I need your help in order to solve this issue.
This issue make problem for me with my client.
It is appricited to send me the modified code.

Regards,
Bader

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 09 Mar 2011, 03:47 PM
Hello Bader,

I already answered your other thread and for your convenience I pasted a summary of my reply below:

 I investigated the problem in more details and here are my findings:

The problem is browser specific behavior of IE8. What actually happens is that when you hit the Back button after the RadWindow was shown, the RadWindow client object is disposed. However, when the IFRAME is removed from the DOM, its unload handler is not called due to browser specifics (common for all IE browsers) and thus we force the unload by changing the src of the IFRAME in dispose. In older IE versions, changing the src of an IFRAME was not added in the history stack which was a problem which had to be workarounded with additional code. However, in Internet Explorer 8 this is fixed and changing the src results in a new entry being created in browser history. That is why changing the src (done in the RadWindow's dispose) in IE8 creates a new history point - hence the problem with the history stack in your case.

As you see here comes the problem: if we remove the force unload for IE8 this means that we could end up with potential memory leaks; if we do not - your scenario ends up with a new history point created. The situation is a complex one to resolve and dealing with history and AJAX is complicated itself, you are the first one who reports this issue and this is also browser specific behavior which can be reproduced without a RadWindow but with a standard IFRAME - due to all these reasons, we decided to keep the built-in source code the way it is for the time being and to log these observation for possible future considerations.

As to your particular case, we prepared a workaround for you which is an override for an internal method - in case you upgrade later to another version of RadControls it is possible to face some issue if this has changed on our side.

I hope that my research and the workaround I prepared for you are helpful and for your convenience I attached your modified files to your other thread.

Best wishes,
Svetlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Bader
Top achievements
Rank 1
answered on 21 Mar 2011, 03:17 PM
Hello,

Thank you for your help, it solves the problem.
I want to indicate that thar radwindow control has another bug when trying to open it using IE9 browser.
Please try to open the Full Screen mode (RadWindow). It is not opening

Note, that this bug is only in IE9.

Please, I need your help to fix the problem.
It is appreciated to send me the solution.

Regards,
Bader
Tags
Window
Asked by
Bader
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Bader
Top achievements
Rank 1
Share this question
or