Kendo.Mvc.UI.Fluent.NotificationBuilder
Defines the fluent API for configuring the Kendo UI Notification
Methods
Tag(System.String)
Sets the Notification HTML tag. A SPAN tag is used by default.
Example (ASPX)
<%= Html.Kendo().Notification()
.Name("Notification")
.Tag("div")
%>
Width(System.Int32)
Defines the width of the notifications to be displayed.
Height(System.Int32)
Defines the height of the notifications to be displayed.
Templates(System.Action<Kendo.Mvc.UI.Fluent.NotificationTemplateFactory>)
Configures the Notification templates.
Animation(System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>)
Configures the animation effects of the displayed notifications.
Parameters
animationAction System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>
The action that configures the animation.
AllowHideAfter(System.Double)
Indicates the period in milliseconds after which a notification can be dismissed (hidden) by the user.
Parameters
value System.Double
The value for AllowHideAfter
AppendTo(System.String)
Defines the element to which the notifications will be appended or prepended (depending on the stacking direction).
Parameters
value System.String
The value for AppendTo
AutoHideAfter(System.Double)
Indicates the period in milliseconds after which a notification disappears automatically. Setting a zero value disables this behavior.
Parameters
value System.Double
The value for AutoHideAfter
Button(System.Boolean)
Determines whether the notifications will include a hide button. This setting works with the built-in templates only.
Parameters
value System.Boolean
The value for Button
Button
Determines whether the notifications will include a hide button. This setting works with the built-in templates only.
Height(System.String)
Defines the notifications' height. Numbers are treated as pixels.
Parameters
value System.String
The value for Height
HideOnClick(System.Boolean)
Determines whether notifications can be hidden by clicking anywhere on their content.
Parameters
value System.Boolean
The value for HideOnClick
Position(System.Action<Kendo.Mvc.UI.Fluent.NotificationPositionSettingsBuilder>)
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.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.NotificationPositionSettingsBuilder>
The configurator for the position setting.
Width(System.String)
Defines the notifications' width. Numbers are treated as pixels.
Parameters
value System.String
The value for Width
Stacking(Kendo.Mvc.UI.NotificationStackingSettings)
Parameters
value Kendo.Mvc.UI.NotificationStackingSettings
The value for Stacking
Events(System.Action<Kendo.Mvc.UI.Fluent.NotificationEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.NotificationEventBuilder>
The client events action.
Example (ASPX)
@(Html.Kendo().Notification()
.Name("Notification")
.Events(events => events
.Hide("onHide")
)
)