Telerik controls and other ASP.NET AJAX controls

5 posts, 0 answers
  1. CynthiaD
    CynthiaD avatar
    52 posts
    Member since:
    Mar 2006

    Posted 22 Aug 2008 Link to this post

    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
  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 24 Aug 2008 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CynthiaD
    CynthiaD avatar
    52 posts
    Member since:
    Mar 2006

    Posted 25 Aug 2008 Link to this post

    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.
  5. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 25 Aug 2008 Link to this post

    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.
  6. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 26 Aug 2008 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017