How to Create a ResponseScript for this?

3 posts, 1 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 27 Oct 2010 Link to this post

    Hello,

    I have a RadAjaxManager in a master page, and a RadAjaxManagerProxy in a user control.  I have this setting:

    <tel:RadAjaxManagerProxy ..>
    <AjaxSettings>
    <tel:AjaxSetting AjaxControlID="lnkCreateNew">
    <UpdatedControls>
    <tel:AjaxUpdatedControl ControlID="rapNewForm" />
    			<tel:AjaxUpdatedControl ControlID="rtsForm" />
    
    			<tel:AjaxUpdatedControl ControlID="rapUpdateSection" />
    </UpdatedControls>
    </tel:AjaxSetting>
    </AjaxSettings>
    </tel:RadAJaxManagerProxy>

    OK, so when the create new button is clicked, the rad ajax panel is also updated, as well as a few other controls.  What I need to have happen is that when create new is clicked, a JavaScript method needs to run

    I tried the following, neither work:

    RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("runCallback();");
    rapUpdateSection.ResponseScripts.Add("runCallback();");

    I have a debugger; in that client method and nothing runs.

    Any ideas?

    Brian
  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Oct 2010 Link to this post

    Hello Brian,

    The RadAjaxManager ResponseScripts method looks ok to me and it should work correctly. Will it be convenient for you to open a regular support ticket and send us small runnable application which replicates the issue? We will test it locally and advise you further


    Sincerely yours,
    Maria Ilieva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 28 Oct 2010 Link to this post

    OK, odd, it seems to work now.  Maybe it was related to another error I fixed.

    Thanks.
Back to Top