Execution of all Javascript

4 posts, 1 answers
  1. License Developer
    License Developer avatar
    2 posts
    Member since:
    Jul 2008

    Posted 31 Jul 2008 Link to this post

    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
  2. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 31 Jul 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. License Developer
    License Developer avatar
    2 posts
    Member since:
    Jul 2008

    Posted 04 Aug 2008 Link to this post

    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.

  5. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 04 Aug 2008 Link to this post

    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.
Back to Top