This is a migrated thread and some comments may be shown as answers.

RestoreOriginalRenderDelegate javascript issue

1 Answer 98 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Nuno
Top achievements
Rank 1
Nuno asked on 01 Mar 2010, 02:32 PM

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.


1 Answer, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 04 Mar 2010, 12:17 PM
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.
Tags
Ajax
Asked by
Nuno
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or