RestoreOriginalRenderDelegate javascript issue

2 posts, 1 answers
  1. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 01 Mar 2010 Link to this post


    Hi all,

    I need your help. 

    I had to use RestoreOriginalRenderDelegate ="false" because of the Medium trust issue at the server side.

    But after setting this property the following line of code that was running inside a dinamically loaded usercontrol Stopped working:

    Telerik.Web.UI.RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("showPictures();"); 

    How can I put it back to work ??

    Thank you.

    Nuno.


  2. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 04 Mar 2010 Link to this post

    Hello Nuno,

    In order to overcome this issue I suggest that you turn the RestoreOriginalDelegate property back to true. And in order RadAjax to work under medium trust, try inheriting your page from RadAjaxPage instead of Page.
    If you still prefer setting the RestoreOriginalDelegate property to false, then I suggest that you register the scripts through the ScriptManager.RegisterStartupScript() method instead of using the ResponseScripts property of RadAjax.

    Check it out and let me know if it works for you.

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