Kendo.Mvc.UI.Fluent.DialogBuilder

Defines the fluent API for configuring the Kendo UI Dialog

Methods

Animation(System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>)

Configures the animation effects of the panelbar.

Parameters

animationAction System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>

The action that configures the animation.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Animation(animation => animation.Expand)

Animation(System.Boolean)

Configures the animation effects of the window.

Parameters

enable System.Boolean

Whether the component animation is enabled.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Animation(false)

Title(System.Boolean)

Allows title to be shown / hidden

Title(System.String)

Sets title, which appears in the header of the dialog.

Actions(System.Action<Kendo.Mvc.UI.Fluent.DialogActionFactory>)

A collection of objects containing text, action and primary attributes used to specify the dialog buttons. #### Example

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DialogActionFactory>

The configurator for the actions setting.

ButtonLayout(System.String)

Specifies the possible layout of the action buttons in the Dialog.Possible values are: normal or stretched.

Parameters

value System.String

The value for ButtonLayout

Closable(System.Boolean)

Specifies whether a close button should be rendered at the top corner of the dialog.

Parameters

value System.Boolean

The value for Closable

Height(System.Double)

Specifies height of the dialog.

Parameters

value System.Double

The value for Height

MaxHeight(System.Double)

The maximum height (in pixels) that may be achieved by resizing the dialog.

Parameters

value System.Double

The value for MaxHeight

MaxWidth(System.Double)

The maximum width (in pixels) that may be achieved by resizing the dialog.

Parameters

value System.Double

The value for MaxWidth

Messages(System.Action<Kendo.Mvc.UI.Fluent.DialogMessagesSettingsBuilder>)

Defines the text of the labels that are shown within the dialog. Used primarily for localization.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DialogMessagesSettingsBuilder>

The configurator for the messages setting.

MinHeight(System.Double)

The minimum height (in pixels) that may be achieved by resizing the dialog.

Parameters

value System.Double

The value for MinHeight

MinWidth(System.Double)

The minimum width (in pixels) that may be achieved by resizing the dialog.

Parameters

value System.Double

The value for MinWidth

Modal(System.Boolean)

Specifies whether the dialog should show a modal overlay over the page.

Parameters

value System.Boolean

The value for Modal

Visible(System.Boolean)

Specifies whether the dialog will be initially visible.

Parameters

value System.Boolean

The value for Visible

Width(System.Double)

Specifies width of the dialog.

Parameters

value System.Double

The value for Width

Content(System.String)

The content of the dialog

Parameters

value System.String

The value for Content

Events(System.Action<Kendo.Mvc.UI.Fluent.DialogEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DialogEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().Dialog()
    .Name("Dialog")
    .Events(events => events
        .Close("onClose")
    )
)