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

RadScriptManager and ASP.NET's ScriptManage

7 Answers 515 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gavin
Top achievements
Rank 1
Gavin asked on 11 Sep 2008, 10:19 PM
Using: ASP.NET AJAX Q2 2008.

I posted this under General Discussions but didn't get a response. Perhaps I posted in the wrong place. Since this is urgent, I thought I'd post it here instead.

Hi,

I need some clarifications regarding the relationship between the RadScriptManager and ASP.NET's ScriptManager.

From RadScriptManager help, it says that:

"RadScriptManager is a control that replaces the ScriptManager available in the Microsoft Ajax Extensions suite."

Does that mean I can just replace it?

That's what I thought it meant but combining like this:

<telerik:RadScriptManager ID="radScriptManager" runat="server" />         
<asp:UpdatePanel ID="updatePanel" runat="server"/> 

gives me the error:

"The control with ID 'updatePanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it."

However, if I do this:

<asp:ScriptManager ID="scriptManager" runat="server" /> 
<telerik:RadScriptManager ID="radScriptManager" runat="server" />         
<asp:UpdatePanel ID="updatePanel" runat="server"/> 


The page runs.

But this also means that we have 2 script managers on the same page and I believe it'll lead to problems.

I'd prefer to stick to ASP.NET's ScriptManager however some of my rad controls will not run (e.g. RadTabStrip)

Please help clarify how we're supposed to use the RadScriptManager.

Thanks.

gavin

7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 12 Sep 2008, 01:01 PM
Hello Gavin,

Could you please verify if you are referencing to the correct dll . If you are using 3.5 version please make sure that you are referencing to the 3.5 version of the dlls  and not the standard one.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gavin
Top achievements
Rank 1
answered on 13 Sep 2008, 12:33 AM

Hi Maria,

That fixed my problem.

However, I'm unsure whether telerik intends for RadScriptManager to seamlessly replaces ASP.NET Ajax ScriptManager. (i.e. if I replace it and somethings don't work, is it a bug?). Or is RadScriptManager only expected to support telerik's suite of controls.

Thanks.

gavin
0
Sebastian
Telerik team
answered on 15 Sep 2008, 07:54 AM
Hello Gavin,

The purpose of RadScriptManager is to replace the regular asp ScriptManager and allows to combine the embedded script resources for RadControls for ASP.NET AJAX (while at the same time has the same capabilities of the MS ScriptManager control). Detailed information about the usage of our RadScriptManager component you can find here.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Robert Vreeland
Top achievements
Rank 1
answered on 16 Sep 2008, 06:31 PM
Unfortunately i'm unable to just drop in the radscriptmanager to replace the regular one.

The moment I do so I get a series of script errors on my pages that say that indicate that the normal ajax libraries did not load:

Syntax error on line 2
Sys in undefined
radconfirm is undefined
sys is undefined

if i change back to the normal scriptmanager then everything works as expected again.

So, it's not quite a drop in replacement for the normal scriptmanager.

What is the cause of this?
0
Daniel
Telerik team
answered on 17 Sep 2008, 06:15 AM
Hello Robert,

Please post a short answer here (for the convenience of our community) whether the latest unofficial hotfix I sent you correct the aforementioned errors.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Robert Vreeland
Top achievements
Rank 1
answered on 17 Sep 2008, 09:24 PM
I tried the hotfix version, but unfortunately it did not resolve the series of errors I am receiving.

thx.
0
Daniel
Telerik team
answered on 22 Sep 2008, 01:30 PM
Hello,

According to Robert this code helps to overcome the issues.
<location path="Telerik.Web.UI.WebResource.axd"
   <system.web> 
     <authorization> 
       <allow users="*"/> 
     </authorization> 
   </system.web> 
 </location> 

More information can be found under our troubleshooting section:
General troubleshooting

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Gavin
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Gavin
Top achievements
Rank 1
Sebastian
Telerik team
Robert Vreeland
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or