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

RadNotification Object

Methods that expose the public properties

Getters/setters for the properties

NameDescription
get_animationGets the animation value of the notification. Returns a variable of type Telerik.Web.UI.NotificationAnimation.
get_animationDurationGets animation duration value for the notification.
get_autoCloseDelayGets delay in milliseconds for the notification to close automatically.
getBoundsReturns the size and position of the notification popup.
get_enabledGets a value indicating whether the notification is enabled
get_heightGets the height of the notification.
get_contentElementGets the content element of the notification.
get_contentScrollingGets a new overflow value for the notification content area. Returns a variable of type Telerik.Web.UI.NotificationScrolling.
get_keepOnMouseOverGets a value indicating whether the notification should stay on the screen when hovered (autoclose is delayed until the mouse goes outside the popup).
get_loadContentOnGets when the content should be loaded. Returns a variable of type Telerik.Web.UI.NotificationLoad.
get_offsetXGets the horizontal offset relative to the browser window.
get_offsetYGets the vertical offset relative to the browser window.
get_opacityGets the value indicating the opacity of the RadNotification.The value should be between 0 and 100. The default value is 100 which is opaque.
get_overlayGets a value indicating whether the notification has an overlay element.
get_pinnedGets a value indicating whether the notification should be scrolled along with the content or not.
get_popupElementReturns a reference to the popup element of RadNotification.
get_positionGets the relative to the browser window position of the notification.
get_showIntervalGets the show interval of the notification.
get_textGets the text of the notification.
get_titleGets the title of the notification.
get_titleMenuReturns a reference to a RadMenu object. Returns 'null' when there is no menu configured.
get_updateIntervalGets the update interval of the notification.
get_valueGets the current value associated with the RadNotification control.
get_visibleTitlebarGets a value indicating whether the RadNotification should have a visible titlebar.
get_widthGets the width of the notification.
get_zIndexGets the z-index of the RadNotification.
set_animationSets new animation value for the notification. The parameter must be of type Telerik.Web.UI.NotificationAnimation. The NotificationAnimation property is an enum and can take the following values, which names describe the effect when they are set: None, Resize, Fade, Slide, FlyIn. For example: notification.set_animation(Telerik.Web.UI.NotificationAnimation.Slide);
set_animationDurationSets animation duration value for the notification.
set_autoCloseDelaySets delay in milliseconds for the notification to close automatically.
set_contentScrollingSets a new overflow value for the notification content area. The Scrolling property is an enum (Telerik.Web.UI.NotificationScrolling) and can take the following values, which names describe the effect when they are set: Default, Auto, None, X, Y, Both. For example: notification.set_contentScrolling(Telerik.Web.UI.NotificationScrolling.None);
set_enabledSets a value indicating whether the notification is enabled.
set_heightSets new height to the notification.
set_keepOnMouseOverSets a value indicating whether the notification should stay on the screen when hovered (autoclose is delayed until the mouse goes outside the popup).
set_loadContentOnSets when the content should be loaded. The parameter must be of type Telerik.Web.UI.NotificationLoad. The NotificationLoad property is an enum and can take the following values, which names describe the effect when they are set: PageLoad, FirstShow, EveryShow, TimeInterval.For example: notification.set_loadContentOn(Telerik.Web.UI.NotificationLoad.TimeInterval);
set_offsetXSets a new horizontal offset relative to the browser window.
set_offsetYSets a new vertical offset relative to the browser window.
set_opacitySets the value indicating the opacity of the RadNotification. The value should be between 0 and 100 where 100 is opaque.
set_overlaySets a value indicating whether the notification will create an overlay element.
set_pinnedSets a value indicating whether the notification should be scrolled along with the content or not.
set_positionSets a new relative to the browser window position for the notification. The parameter must be of type Telerik.Web.UI.NotificationPosition. The NotificationPosition property is an enum and can take the following values, which names describe the effect when they are set: TopLeft, TopCenter, TopRight, MiddleLeft, Center, MiddleRight, BottomLeft, BottomCenter, BottomRight. For example: notification.set_position(Telerik.Web.UI.NotificationPosition.Center);
set_showIntervalSets new show interval to the notification.
set_textSets new text to the notification.
set_titleSets a new title to the notification.
set_updateIntervalSets new update interval to the notification.
set_valueSets new value to be associated with the RadNotification control
set_visibleTitlebarSets a value indicating whether the RadNotification should have a visible titlebar.
set_widthSets new width to the notification.
set_zIndexSets new z-index of the RadNotification.

Public methods

They activate certain behaviors or functionality

NameDescription
hideHides the notification.
isVisibleIndicates whether the RadNotification popup is currently visible.
moveToMoves the notification to the specified coordinates (horizontal, vertical).
playSoundStarts the notification sound.
setSizeSets new width and height to the notification.
showDisplays the notification at the proper position, relative to the browser window.
updateUpdates the content of the notification.
userInitSoundSome browsers have the limitation to only play sound after a user interaction.Calling this method at such a moment tries to play the sound in an attempt to make it availablefor cases when user interaction is missing. Such known case is Safari on iOS devices.
verifySoundDoes a check whether internally the sound is playable. This is usually needed when the sound is onlyplayable after a user interaction and userInitSound method has had to be called.