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

Telerik controls and other ASP.NET AJAX controls

4 Answers 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
CynthiaD
Top achievements
Rank 1
CynthiaD asked on 22 Aug 2008, 10:33 PM
I just downloaded the ASP.NET AJAX controls.  Now, reading the documentation, I want to make sure the Telerik controls are compatible with regular ASP.NET controls I have on my page that use ASP.NET AJAX (i.e., they are inside UpdatePanels).

Do I need to use the RadScriptManager if I have the regular ScriptManager? Is there an article that discusses the interaction between Telerik controls and normal controls that are using ASP.NET AJAX?

Cynthia

4 Answers, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 24 Aug 2008, 10:32 PM
Hi Cynthia,

Telerik will drop in on this conversation on Monday morning, but just to give you a head-start...

The Telerik ASP.NET AJAX controls are all fully compatible with all standard ASP.NET Controls as well as ASP.NET AJAX Extension controls, so there should be no need to worry.  If you do experience issues, however, you can rest assured that Telerik and its great community will be available to help out.

The asp:ScriptManager and the telerik:RadScriptManager are essentially the same thing and you only need to have one or the other on the page to "enable" AJAX on the page.  There are benefits to using the RadScriptManager over the standard ScriptManager though.  Those details are here:

http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html

Other resources that may be of interest can be found here:

http://www.telerik.com/help/aspnet-ajax/generalaspnetajaxinfo.html

Hope that helps,

Shaun.

0
CynthiaD
Top achievements
Rank 1
answered on 25 Aug 2008, 04:35 PM
OK, when I replace the ScriptManager with the RadScriptManager and try to run my test program, I get the following error:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.WebResource.Exists(String path, String applicationPath) +257
   Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


What am I missing?  I did add the following HttpHandler to the web.config:

   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

as instructed (I thought) in the link you gave me.
0
Shaun Peet
Top achievements
Rank 2
answered on 26 Aug 2008, 03:56 AM
Hi Cynthia,

I'm afraid that without more information it would be difficult to provide further assistance.  My suggestion would be to open a support ticket with Telerik and provide them with a sample project as this will either 1) allow them to fix it for you or 2) identify any issues that exist and then fix them.

Alternatively, if you are willing and able to do so, please provide some more details here about the other controls that are on the page.  However, it is certainly understandable if you prefer to keep any trade secrets from the public domain.  If that's not a concern, then typically pasting the relevant code here will be a big help for others trying to provide assistance.

Shaun.
0
Sebastian
Telerik team
answered on 26 Aug 2008, 07:40 AM
Hi CynthiaD,

It seems that in your case the web resource is not found and this causes RadScriptManager to generate an exception. In order to troubleshoot the project execution, I suggest you review the tips from the following article in the documentation:

http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
CynthiaD
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
CynthiaD
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or