RadAjaxManager.ResponseScripts() does not fire javascript after ajax event

2 posts, 0 answers
  1. Jim
    Jim avatar
    3 posts
    Member since:
    Jan 2009

    Posted 05 May 2009 Link to this post

    I have an issue that javascript is not fired when AjaxManager.ResponseScripts.Add("updateSummary();") is executed from the NodeExpand() event in a RadTreeView Control.



    Sub RadTreeViewProducts_NodeExpand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeViewProducts.NodeExpand


        ' Deleted adding nodes to treeview




    End Sub

    updateSummary() is a valid javascript function on the page.

    I can successfully use the same ResponseScripts() call in an AjaxManager_AjaxRequest event, but not the NodeExpand event of the RadTreeView.

    I am using RadControl for ASP.NET AJAX Q3 2008.

    Any suggestions?



  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 06 May 2009 Link to this post


    Is your NodeExpand event ajaxified with RadAjaxManager? The ReponseScripts will only work after an ajax event, so make sure that your event is ajaxified.

    Otherwise, your approach looks okay. I don't see any problems with your syntax. You may consider using FireBug in FireFox to do more script debugging and ensure no other JS errors are occuring after your NodeExpand that could be causing your updateSummary to fail. Let me know if this helps.

  3. DevCraft R3 2016 release webinar banner
Back to Top