RadScriptBlock update after Ajax-Request in version 2016.1.113.45

7 posts, 1 answers
  1. Christian
    Christian avatar
    11 posts
    Member since:
    Apr 2015

    Posted 19 Jan Link to this post

    Hi!

    After the upgrade to version 2016.1.113.45 the RadScriptBlock is updated every time after an AjaxRequest on the page though the RadScriptBlock is not embedded in an Update-Panel nor  in a collection of the RadAjaxManager(Proxy) UpdatedControls. This destroys all my previous JavaScript initialization after an Ajax-Postback :(

    With version 2015.3.1111.45 everything is working as expected.

     

     In the sample below the timestamp is updated after every Ajax-Postback...

    <telerik:RadScriptBlock ID="MainScriptBlock" runat="server">
        <script type="text/javascript">
            alert("<%= DateTime.Now.ToString() %>");
        </script>
    </telerik:RadScriptBlock>

  2. Christian
    Christian avatar
    11 posts
    Member since:
    Apr 2015

    Posted 21 Jan Link to this post

    Ok, if I use the RadCodeBlock instead of RadScriptBlock it's not updating the JavaScript block after an ajax update on a different part of the page anymore.

    Anyway, RadScriptBlock behaved different in the old version.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Paul avatar
    3 posts
    Member since:
    Jun 2013

    Posted 21 Jan in reply to Christian Link to this post

    Thank you Christian. I had the same problem. Everything was just fine. I updated to Q1 2016 and all my Ajax just stopped working.

     

    Thanks again.

  5. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 22 Jan Link to this post

    Hello,

    Indeed you are right that this problem with the ScriptBlock that is updated after ajax request persists and we will fix it for the upcoming Q1 2016 SP1 release. I have updated your Telerik points for bringing this issue to our attention.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Christian
    Christian avatar
    11 posts
    Member since:
    Apr 2015

    Posted 25 Jan in reply to Pavlina Link to this post

    Thanks, Pavlina.
  7. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 25 Jan in reply to Pavlina Link to this post

    Are you guys internally using http://www.telerik.com/teststudio/testing-framework?

    http://www.telerik.com/teststudio

    Can you describe what was changed in Ajax Manager that lead to this bug?

  8. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 25 Jan Link to this post

    Hello,

    As you can see from the release notes : http://www.telerik.com/support/whats-new/aspnet-ajax/release-history/ui-for-asp-net-ajax-q1-2016-version-2016-1-113 the only fix introduced in this version for RadAjaxManger is this one - RadScritpBlock can not register scripts if the ajax initiator is removed from the page after the request and this is the change that leads to the problem you encounter. However, as I mentioned it is already fixed and the fix for this bug will be included in the next internal build and SP1 release which is scheduled for the end of February.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017