IE8 bug at postback using AJAX (version Q3)

6 posts, 1 answers
  1. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 07 Jan 2010 Link to this post

    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
  2. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Jan 2010 Link to this post

    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.
  3. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 12 Jan 2010 Link to this post

    Hi Georgi,

    Thanks for your answer. It works indeed.

    Thx,
    Danny
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jan 2010 Link to this post

    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.
  5. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 13 Jan 2010 Link to this post

    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
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 Jan 2010 Link to this post

    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.
Back to Top