Run Javascript after Ajax Update

2 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 10 Sep 2009 Link to this post

    Hi

    I have the following that loads a Javascript function to run on page load:

            Dim MasterBody As HtmlGenericControl = Me.Master.body
            MasterBody.Attributes.Add("onload", "DoDetailsCalc()")

    Depending upon the users preferences the javascript to run will either be DoDetailsCalc() as shown or DoTotalsCalc(). This is why I load it from code behind.

    When I perform an update to the page, I want it to recalculate, this was working fine, until I put a RadAjaxManager on the page.

    The page load is no longer firing in this situation.

    How do I re run the javascript?

    Andy
  2. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 10 Sep 2009 Link to this post

    Hello Andy,

    How to execute custom javascript when an ajax request finishes execution you can see from this article in the RadAjax documentation. Feel free to choose the approach which suits your needs best.

    Best regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top