This is a migrated thread and some comments may be shown as answers.

Execution of all Javascript

3 Answers 107 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
License Developer
Top achievements
Rank 1
License Developer asked on 31 Jul 2008, 10:59 AM
Hi,

In the previous version of the RadControls there was an option on the Ajax Manager to 'Enable execution of all Javascript'.

I can't find this on the Prometheus Ajax Manager.

Is there an equivalent feature to enable this functionality in the Prometheus controls?

Thanks,

Paul

3 Answers, 1 is accepted

Sort by
0
Kevin Babcock
Top achievements
Rank 1
answered on 31 Jul 2008, 09:53 PM
Hello Paul,

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.

Sincerely,
Kevin Babcock
0
License Developer
Top achievements
Rank 1
answered on 04 Aug 2008, 08:19 AM
Hi,

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.
Tags
Ajax
Asked by
License Developer
Top achievements
Rank 1
Answers by
Kevin Babcock
Top achievements
Rank 1
License Developer
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or