Throwing JS add_responseEnding error on page load

3 posts, 0 answers
  1. Robert Bross
    Robert Bross avatar
    27 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    I have a very simple notification that I am trying to display and for some reason it is throwing the following exception....

    1. Uncaught TypeError: Cannot call method 'add_responseEnding' of null Telerik.Web.UI.WebResource.axd:5588
      1. $T.RadNotification._attachXmlPanelHandlersTelerik.Web.UI.WebResource.axd:5588
      2. $T.RadNotification.initializeTelerik.Web.UI.WebResource.axd:5571
      3. (anonymous function)InformationPortal.aspx:878
      4. c

    Here is the declaration of the notification that I am using:

    <telerik:RadNotification ID="FormMessage" Text="Test Message" VisibleOnPageLoad="false" Width="300px" Height="100px" runat="server" ClientIDMode="Static" Position="BottomRight" OffsetY="-50" offsetx="-50" EnableRoundedCorners="true" EnableShadow="true" Animation="Fade" ContentIcon="info" TitleIcon="none" Font-Bold="true" Font-Size="XX-Large" >
                </telerik:RadNotification>

    Anyone have any ideas what might be causing this?

    Thanks!
  2. Robert Bross
    Robert Bross avatar
    27 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    Actually, I just found out what the issue appears to be stemming from... The ClientIdMode="static". When I take that out, the error message goes away. For now, I can get around this by pushing down a JS variable with the ClientId, but would it be possible to add this as an ehancement or bug fix for a future release as I think it would be cleaner to simply use the ClientIdMode="Static" setting.

    Thanks again!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 22 Oct 2012 Link to this post

    Hello Robert,

    Many of the RadControls for ASP.NET AJAX cannot work when their ClientIDMode property is set to Static. This stems from the way the framework is designed, complex container controls require it so that unique IDs are ensured. The RadControls are complex HTML structures and many of them are, in turn, containers for other controls. This is why leaving the ClientIDMode to its defauilt value is required. One of these container controls is the RadNotification.


    Greetings,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top