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

NotificationBuilder

Methods

Position(System.Action)

Configures the position settings of the popup notifications.

Parameters

configurator - System.Action<NotificationPositionSettingsBuilder>

Stacking(Kendo.Mvc.UI.NotificationStackingSettings)

Sets the stacking direction when multiple notifications are displayed by a single widget instance.

Parameters

value - NotificationStackingSettings

HideOnClick(System.Boolean)

Sets whether notifications should be hidden by clicking anywhere on their content.

Parameters

value - System.Boolean

Button(System.Boolean)

Sets whether notifications should display a hide button (when using default templates only).

Parameters

value - System.Boolean

AllowHideAfter(System.Int32)

Sets the time in milliseconds, after which a notifications can be hidden by the user via clicking.

Parameters

value - System.Int32

AutoHideAfter(System.Int32)

Sets the time in milliseconds, after which a notifications is hidden automatically.

Parameters

value - System.Int32

AppendTo(System.String)

Defines a CSS selector, which points to the element that will hold the notifications to be displayed.

Parameters

value - System.String

Width(System.String)

Defines the width of the notifications to be displayed.

Parameters

value - System.String

Width(System.Int32)

Defines the width of the notifications to be displayed.

Parameters

value - System.Int32

Height(System.String)

Defines the height of the notifications to be displayed.

Parameters

value - System.String

Height(System.Int32)

Defines the height of the notifications to be displayed.

Parameters

value - System.Int32

Templates(System.Action)

Configures the Notification templates.

Parameters

configurator - System.Action<NotificationTemplateFactory>

Animation(System.Action)

Configures the animation effects of the displayed notifications.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

The action that configures the animation.

Events(System.Action)

Configures the client-side events.

Parameters

events - System.Action<NotificationEventBuilder>

The client events action.

Example


            @( Html.Kendo().Notification()
                       .Name("Notification")
                       .Events(events =>
                           events.Hide("onHide"))
            )

Tag(System.String)

Sets the Notification HTML tag. A SPAN tag is used by default.

Parameters

tag - System.String

Example


            @( Html.Kendo().Notification()
                       .Name("Notification")
                       .Tag("div")
            )

Title(System.String)

Defines the title attribute value for the Notification wrapper.

Parameters

value - System.String

The value for Title

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

AsChildComponent()

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?