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

[Solved] medium trust problems

3 Answers 219 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
SamVanity
Top achievements
Rank 2
SamVanity asked on 05 Apr 2008, 09:09 PM
I am encountering some problems when the software is running on medium trust level. I set RestoreOriginalRenderDelegate="false" for my RadAjaxManager as well as RadAjaxPanel.

Specifically, the problems are:

  1. RadScriptBlock does not work (no effect)
  2. ResponseScript.Add ('some scripts') does not work (no effect)
  3. client side call .ajaxRequest() does not work (causing full postback)
Please provide a solution for the above issues ASAP

By the way, does inheriting RadAjaxPage solve the problem? What if I use the RadAjax controls in my user controls? what do I have to inherit from for my user controls?

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 07 Apr 2008, 08:14 AM
Hi Sam,

RestoreOriginalRenderDelegate property was exposed to work around the limitation of RadAjax Prometheus in DNN where you cannot inherit from RadAjaxPage to be able to run in Medium Trust. If you don't work in DNN please add RadAjaxManager in your main page and inherit from RadAjaxPage as well as remove the RestoreOriginalRenderDelegate="false" setting. You can use the manager proxy in your WebUserControls.

Should you need further assistance, do not hesitate to contact us again.

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
SamVanity
Top achievements
Rank 2
answered on 07 Apr 2008, 07:17 PM
It works well inheriting RadAjaxPage and having a manager in my master page, but there are a few bugs I'd like to report:

1) I cannot have 2 RadAjaxPanels in the page. the second ajax panel does not initiate ajax postback. It does regular post back.

2) I cannot ajaxify telerik:grid using the manager. I need to wrap an asp:panel around the grid and ajaxify the panel.

0
Konstantin Petkov
Telerik team
answered on 08 Apr 2008, 06:58 AM
Hi Sam,

I was able to replicate the first problem and notified our developers immediately. You can easily work around that with the help of RadAjaxManager, though. Just replace the AJAX Panels with ASP:Panels and ajaxify/update them.

As to the second problem, that functions correctly on my end. I have attached my test sample to demonstrate both cases.

Your Telerik points are updated for notifying us about the RadAjaxPanels issue in Medium Trust. Thank you!

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
SamVanity
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
SamVanity
Top achievements
Rank 2
Share this question
or