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

Defines the fluent API for configuring NotificationPositionSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class NotificationPositionSettingsBuilder

Inheritance: objectNotificationPositionSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

NotificationPositionSettingsBuilder method.

C#
public NotificationPositionSettingsBuilder(NotificationPositionSettings container)
Parameters:containerNotificationPositionSettings

Properties

Gets the settings being configured.

C#
protected NotificationPositionSettings Container { get; }

Methods

Determines the pixel position of the first popup notification with regard to the viewport's bottom edge.

C#
public NotificationPositionSettingsBuilder Bottom(double value)
Parameters:valuedouble

The value for Bottom

Returns:

NotificationPositionSettingsBuilder

Returns the current NotificationPositionSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Position(p=>p.Bottom(12))
)

Determines the pixel position of the first popup notification with regard to the viewport's left edge.

C#
public NotificationPositionSettingsBuilder Left(double value)
Parameters:valuedouble

The value for Left

Returns:

NotificationPositionSettingsBuilder

Returns the current NotificationPositionSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Position(p=>p.Left(12))
)

Determines whether the popup notifications will move together with the other page content during scrolling.

C#
public NotificationPositionSettingsBuilder Pinned(bool value)
Parameters:valuebool

The value for Pinned

Returns:

NotificationPositionSettingsBuilder

Returns the current NotificationPositionSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Position(p=>p.Pinned(true))
)

Determines the pixel position of the first popup notification with regard to the viewport's right edge.

C#
public NotificationPositionSettingsBuilder Right(double value)
Parameters:valuedouble

The value for Right

Returns:

NotificationPositionSettingsBuilder

Returns the current NotificationPositionSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Position(p=>p.Right(12))
)

Determines the position of the first popup notification with regard to the viewport's top edge. Numeric values are treated as pixels.

C#
public NotificationPositionSettingsBuilder Top(double value)
Parameters:valuedouble

The value for Top

Returns:

NotificationPositionSettingsBuilder

Returns the current NotificationPositionSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Position(p=>p.Top(12))
)