Edit this page

Kendo.Mvc.UI.Fluent.DialogBuilder

Defines the fluent API for configuring the Kendo Dialog for ASP.NET MVC.

Methods

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 action that configures the actions.

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 that configures the 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 that configures the closable.

Height(System.Double)

Specifies height of the dialog.

Parameters

value System.Double

The value that configures the height.

MaxHeight(System.Double)

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

Parameters

value System.Double

The value that configures the maxheight.

MaxWidth(System.Double)

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

Parameters

value System.Double

The value that configures the 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 action that configures the messages.

MinHeight(System.Double)

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

Parameters

value System.Double

The value that configures the minheight.

MinWidth(System.Double)

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

Parameters

value System.Double

The value that configures the minwidth.

Modal(System.Boolean)

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

Parameters

value System.Boolean

The value that configures the modal.

Title(System.String)

The text in the dialog title bar. If false, the dialog will be displayed without a title bar.

Parameters

value System.String

The value that configures the title.

Visible(System.Boolean)

Specifies whether the dialog will be initially visible.

Parameters

value System.Boolean

The value that configures the visible.

Width(System.Double)

Specifies width of the dialog.

Parameters

value System.Double

The value that configures the width.

Content(System.String)

The content of the dialog

Parameters

value System.String

The value that configures the content.

Animation(System.Boolean)

A collection of {Animation} objects, used to change default animations. A value of false will disable all animations in the widget. is not a valid configuration.

Parameters

enabled System.Boolean

Enables or disables the animation option.

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

A collection of {Animation} objects, used to change default animations. A value of false will disable all animations in the widget. is not a valid configuration.

Parameters

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

The action that configures the animation.

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")
)
%>