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

Throwing JS add_responseEnding error on page load

2 Answers 77 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Robert Bross
Top achievements
Rank 1
Robert Bross asked on 19 Oct 2012, 04:37 PM
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 Answers, 1 is accepted

Sort by
0
Robert Bross
Top achievements
Rank 1
answered on 19 Oct 2012, 04:40 PM
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!
0
Marin Bratanov
Telerik team
answered on 22 Oct 2012, 02:00 PM
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.
Tags
Notification
Asked by
Robert Bross
Top achievements
Rank 1
Answers by
Robert Bross
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or