New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadNotification Object

Server Properties

NameDescription
AnimationGet/Set the animation effect of the notification.
AnimationDurationSets/gets the duration of the animation in milliseconds.
AudioHandlerUrlSpecifies the URL of the HTTPHandler that serves the notification sound.
AutoCloseDelayGet/Set the delay (in milliseconds) after which the notification will hide if not explicitly closed. Set it to 0 to prevent the notification from closing automatically.
CloseButtonToolTipGets or sets the content of the close button tooltip. The default value is Close .
ContentContainerGets the control, where the ContentTemplate will be instantiated in.You can use this property to programmatically add controls to the content area. If you add controls to the ContentContainer the Text and ContentIcon properties will be ignored.
ContentIconGets or sets the content icon. The default value is NotificationIcon.Default .
ContentScrollingGet/Set overflow of the notification's content area.
EnableAriaSupportWhen set to true enables support for WAI-ARIA.
EnabledGets or sets a value indicating whether the notification is enabled. The default value is true .
EnableRoundedCornersGets or sets a value indicating whether the notification should have rounded corners. The default value is false . This is achieved via CSS3 properties and will not have effect under browsers that do not support them (such as IE8 and prior, FireFox 3, etc).
EnableShadowGets or sets a value indicating whether the notification should have shadow. The default value is false . This is achieved via CSS3 properties and will not have effect under browsers that do not support them (such as IE8 and prior, FireFox 3, etc).
HeightGet/Set the Height of the notification. Can be set both in pixels and percent.
KeepOnMouseOverGets or sets a value indicating whether the notification should stay on the screen when hovered (autoclose is delayed until the mouse goes outside the popup). The default value is true .
LoadContentOnGets or sets when the content should be loaded.
NotificationMenuGets the context title menu.
OffsetXGet/Set the notification's horizontal offset. Works in cooperation with the Position property.
OffsetYGet/Set the notification's vertical offset. Works in cooperation with the Position property.
OpacityGets or sets a value indicating what should be the opacity of the notification. The value must be between 0 (transparent) and 100 (opaque). The default value is 100 .
OverlayGets or sets a value indicating whether the notification will create an overlay element. The default value is false .
PinnedGets or sets a value indicating whether the notification is pinned (when true it does not scroll with the page). The default value is true .
PositionGet/Set the top/left position of the notification relative to the browser.
ShowCloseButtonGets or sets whether the close [X] button should be visible. The default value is true .
ShowIntervalGets or sets when the interval after which the notification will automatically show.
ShowSoundGets or sets the sound to be played on show. The default value is none
ShowTitleMenuGets or sets whether the title menu should be visible. The default value is true .
TextGet/Set the Text that will appear in the notification (if there is no ContentTemplate used).
TitleGet/Set the Text that will appear in the notification (if there is no ContentTemplate used).
TitleIconGets or sets the title icon. The default value is NotificationIcon.Default .
TitleMenuToolTipGets or setsthe content of the the tooltip for the title menu. The default value is Menu .
UpdateIntervalGets or sets when the interval after which the notification will automatically update the content.
ValueGet/Set the an optional Value to pass.
VisibleOnPageLoadGets or sets a value indicating whether the notification will open automatically when its parent [aspx] page is loaded on the client. The default value is false .
VisibleTitlebarGets or sets a value indicating whether the notification has a titlebar visible. The default value is true.
WebMethodNameGets or sets the web method name in the web service used to populate content.
WebMethodPathGets or sets the path to the web service used to populate content.
WidthGet/Set the Width of the notification. Can be set both in pixels and percent.

Server Methods

Server methods that invoke a certain action of the control

NameDescription
ShowWhen called the RadNotification will be shown on the client once the page is loaded (or the AJAX request is receieved). It does not require that the notification is updated in the partial postback in order to work (if you change some properties in an AJAX request, however, you need to include the control in the request).The Show() method has one override - optionally it can take a string message that will be shown in the notification once. This message is not persisted in the viewstate and the control will maintain its old value in case of a subsequent postback/AJAX request. More information can be found in this online demo. Note that this string ultimately passes through JavaScript, therefore it must be escaped properly, e.g. apostrophes will throw an error, because they are string delimiters in this programming language.

Server properties for setting client event handlers

The value of these properties is a string specifying the name of the JavaScript function that will handle the event. The default value is an empty string.

NameDescription
OnClientShowingGets or sets a value indicating the client-side event handler that is called when the RadNotification is to be shown.
OnClientShownGets or sets a value indicating the client-side event handler that is called the just after the RadNotification is shown.
OnClientHidingGets or sets a value indicating the client-side event handler that is called when the RadNotification is to be hidden.
OnClientHiddenGets or sets a value indicating the client-side event handler that is called when the RadNotification is hidden.
OnClientUpdatingGets or sets a value indicating the client-side event handler that is called when the content of RadNotification is to be updated.
OnClientUpdatedGets or sets a value indicating the client-side event handler that is called when the content of RadNotification is updated.
OnClientUpdateErrorGets or sets a value indicating the client-side event handler that is called the call to the WebService or the callback is interrupted by an error.

Server events

NameDescription
OnCallbackUpdateAllows for dynamic content to be set into the notification with a callback.The event is triggered according to the LoadContentOn property.

Enumerators

NameValues
NotificationAnimationNone, Resize, Fade, Slide, FlyIn
NotificationLoadPageLoad, FirstShow, EveryShow, TimeInterval
NotificationPositionTopLeft, TopCenter, TopRight, MiddleLeft, Center, MiddleRight, BottomLeft, BottomCenter, BottomRight
NotificationScrollingAuto, None, X, Y, Both, Default

See Also