New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI Notification component

Definition

Constructors

Initializes a new instance of the Notification class.

C#
public Notification(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Indicates the period in milliseconds after which a notification can be dismissed (hidden) by the user.

C#
public double? AllowHideAfter { get; set; }

Animation member.

C#
public PopupAnimation Animation { get; }

Defines the element to which the notifications will be appended or prepended (depending on the stacking direction).

C#
public string AppendTo { get; set; }

Indicates the period in milliseconds after which a notification disappears automatically. Setting a zero value disables this behavior.

C#
public double? AutoHideAfter { get; set; }

Determines whether the notifications will include a hide button. This setting works with the built-in templates only.

C#
public bool? Button { get; set; }

Defines the notifications' height. Numbers are treated as pixels.

C#
public string Height { get; set; }

Determines whether notifications can be hidden by clicking anywhere on their content.

C#
public bool? HideOnClick { get; set; }

This setting applies to popup notifications only, i.e. in cases when appendTo is not set. It determines the position of the first notification on the screen, as well as whether the notifications will move together with the page content during scrolling. top takes precedence over bottom and left takes precedence over right.

C#
public NotificationPositionSettings Position { get; }

Determines the direction in which multiple notification will stack (arrange) with regard to the first one. Possible values are "up", "right", "down", "left" and "default". The "default" setting takes into consideration the applied position settings and is evaluated to "up" or "down".

C#
public NotificationStackingSettings? Stacking { get; set; }

Tag member.

C#
public string Tag { get; set; }

Templates member.

C#
public IList<NotificationTemplateSettings> Templates { get; }

Defines the title attribute value for the Notification wrapper.

C#
public string Title { get; set; }

Defines the notifications' width. Numbers are treated as pixels.

C#
public string Width { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)