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
>
6 Answers, 1 is accepted
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.
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.
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
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?
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