Because all of the RadControls for ASP.NET AJAX (formerly "Prometheus") controls are built on top of the ASP.NET AJAX framework, they all use embedded JavaScript by default for their client-side functionality. For the RadAjaxManager and RadAjaxPanel you can use the EnableAJAX property to turn asynchronous calls on or off. For other controls you can use the EnableEmbeddedScripts property to turn the client script on or off. However, disabling the embedded scripts can cause the controls to function incorrectly.
I hope this has been helpful. If you have further questions, please don't hesitate to ask.
The behaviour I'm after is to allow server-side calls to Page.ClientScript.RegisterClientScriptBlock() to execute from Ajax requests.
The behaviour I'm getting at the moment is that the Page.ClientScript.RegisterClientScriptBlock() method is called within C# but the Javascript is not executed on the client.
Can this be achieved with Rad Controls for ASP.NET AJAX?
Thanks.
0
Accepted
Sebastian
Telerik team
answered on 04 Aug 2008, 08:24 AM
Hello Paul,
To register client scripts which later will be accessed and executed by the ASP.NET AJAX framework (after an ajax request), use the ScriptManager.RegisterClientScriptBlock static method as a replacement for the Page.ClientScript.RegisterClientScriptBlock method.
Best regards,
Stephen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.