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

Provides a fluent interface for configuring notification position settings.

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

C#
public NotificationPositionSettingsBuilder(NotificationPositionSettings settings)
Parameters:settingsNotificationPositionSettings

Methods

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

C#
public NotificationPositionSettingsBuilder Bottom(int value)
Parameters:valueint

The value of the distance from bottom.

Returns:

NotificationPositionSettingsBuilder

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

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

C#
public NotificationPositionSettingsBuilder Left(int value)
Parameters:valueint

The value of the distance from left.

Returns:

NotificationPositionSettingsBuilder

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

Sets whether popup notifications should maintain their position during page scrolling.

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

Boolean value indicating whether the position should me maintained during page scrolling.

Returns:

NotificationPositionSettingsBuilder

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

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

C#
public NotificationPositionSettingsBuilder Right(int value)
Parameters:valueint

The value of the distance from right.

Returns:

NotificationPositionSettingsBuilder

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

Sets the position of the first popup notification with regard to the viewport's top edge.

C#
public NotificationPositionSettingsBuilder Top(int value)
Parameters:valueint

The value of the distance from top.

Returns:

NotificationPositionSettingsBuilder

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