Please note that generally, Response.Write or direct script registering on ajax requests is not supported:
You can check the the following sample for an alternative solution:
In addition, you can go through:
Hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.