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

IE8 bug at postback using AJAX (version Q3)

5 Answers 50 Views
Window
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 07 Jan 2010, 12:15 PM
Hi,

I have a problem with IE8 and the RadWindow. I have uploaded a simple project at http://www.smallweb.nl/upload/danny/RadWindowTest.zip.

What I do is the following:
1. I have added a button, label, hyperlink and radwindow to the page
2. The hyperlink opens the RadWindow, using some javascript.
3. Using the add_close function of the RadWindow, a javascript function is called when the RadWindow is closed
4. When the RadWindow is closed, the command $get('Button1').click() method is called, which performs a postback to the server
5. The button is added to the RadAjaxManager as an AjaxControl. The Label is added as an AjaxUpdatedControl.

So when the RadWindow is closed, the button is clicked (using some javascript) and the label will be updated using AJAX. This all works fine in IE7 and FF, but not in IE8. 

Ien IE8, when the RadWindow is opened and closed for the second time on this page, there are two requests for this page at the server. When I set a breakpoint in the page_load event and check the IsPostBack property (which should be set to TRUE), in the 1st request this property is FALSE and also the click event of the button does not occur. In the 2nd request the IsPostBack property is TRUE and the click event occurs.
In IE7 and FF only one request to the server occurs (as it should be).

Is there a workaround for this problem?

Thanks,
Danny

5 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 12 Jan 2010, 02:10 PM
Hello Danny,

I just answered your support ticket on the same subject. For convenience I am pasting my reply below:


I examined your code and I see that you are setting the closing function on every opening of the control - if you remove it in the WindowClosed() function, everything should work as expected:


function WindowClosed(sender, args)
{
    sender.remove_close(WindowClosed);
    var btn = $get('" + Button1.ClientID + @"');
    btn.click();
}


I hope this helps.




All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Danny Scheelings
Top achievements
Rank 1
answered on 12 Jan 2010, 02:24 PM
Hi Georgi,

Thanks for your answer. It works indeed.

Thx,
Danny
0
Georgi Tunev
Telerik team
answered on 13 Jan 2010, 07:22 AM
Hello Danny,

I am glad that I was able to help. One more thing (I forgot to mention it in my previous reply) - I see that you are using an internal build of the controls - there is no official 2009.2.1028.35 version. I would suggest to consider upgrading to one of the latest official versions of the control.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Danny Scheelings
Top achievements
Rank 1
answered on 13 Jan 2010, 08:49 AM
Hi Georgi,

You mean I should buy the Q3 release? Because there is no later version of the Q2 version than the internal build that I use.

Thx,
Danny
0
Georgi Tunev
Telerik team
answered on 15 Jan 2010, 12:27 PM
Hi Danny,

Yes, I would recommend that :) Our products are constantly evolving and we fix bugs and add new features with every release.
Of course such decision depends entirely on you, but if you decide to upgrade, I suggest to contact our sales team.



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Danny Scheelings
Top achievements
Rank 1
Share this question
or