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.
Modal(System.Action<Kendo.Mvc.UI.Fluent.DialogModalSettingsBuilder>)
Specifies whether the dialog should show a modal overlay over the page.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DialogModalSettingsBuilder>
The configurator for the modal setting.
Modal(System.Boolean)
Specifies whether the dialog should show a modal overlay over the page.
Parameters
enabled System.Boolean
Enables or disables the modal option.
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
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
Width(System.Double)
Specifies width of the dialog.
Parameters
value System.Double
The value for Width
Height(System.String)
Specifies height of the dialog.
Parameters
value System.String
The value for Height
MaxHeight(System.String)
The maximum height (in pixels) that may be achieved by resizing the dialog.
Parameters
value System.String
The value for MaxHeight
MaxWidth(System.String)
The maximum width (in pixels) that may be achieved by resizing the dialog.
Parameters
value System.String
The value for MaxWidth
MinHeight(System.String)
The minimum height (in pixels) that may be achieved by resizing the dialog.
Parameters
value System.String
The value for MinHeight
MinWidth(System.String)
The minimum width (in pixels) that may be achieved by resizing the dialog.
Parameters
value System.String
The value for MinWidth
Width(System.String)
Specifies width of the dialog.
Parameters
value System.String
The value for Width
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.Note: Stretched layout has no effect in browsers, like IE9, that do not support flexbox.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
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.
Visible(System.Boolean)
Specifies whether the dialog will be initially visible.
Parameters
value System.Boolean
The value for Visible
Size(System.String)
Set predefined size to the dialog. The width and height configuration options override the predefined size.Possible values are: auto; small; medium or large.
Parameters
value System.String
The value for Size
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")
)
)