DialogBuilder
Defines the fluent API for configuring the Kendo Dialog for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DialogBuilder : WidgetBuilderBase<Dialog, DialogBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Dialog, DialogBuilder>DialogBuilder
Implements:
Inherited Members
Constructors
Methods
A collection of objects containing text, action and primary attributes used to specify the dialog buttons.
public DialogBuilder Actions(Action<DialogActionFactory> configurator)
The action that configures the actions.
Returns: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.
public DialogBuilder Animation(Action<PopupAnimationBuilder> configurator)
The action that configures the animation.
Returns: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.
public DialogBuilder Animation(bool enabled)
Enables or disables the animation option.
Returns: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.
public DialogBuilder ButtonLayout(string value)
The value that configures the buttonlayout.
Returns:Specifies whether a close button should be rendered at the top corner of the dialog.
public DialogBuilder Closable(bool value)
The value that configures the closable.
Returns:Sets the HTML content which the window should display.
public DialogBuilder Content(Action value)
The action which renders the content.
Returns:The content of the dialog
public DialogBuilder Content(string value)
The value that configures the content.
Returns:Configures the client-side events.
public DialogBuilder Events(Action<DialogEventBuilder> configurator)
The client events action.
Returns:Specifies height of the dialog.
public DialogBuilder Height(double value)
The value that configures the height.
Returns:Specifies height of the dialog.
public DialogBuilder Height(string value)
The value that configures the height.
Returns:The maximum height (in pixels) that may be achieved by resizing the window.
public DialogBuilder MaxHeight(double value)
The value that configures the maxheight.
Returns:The maximum height (in pixels) that may be achieved by resizing the window.
public DialogBuilder MaxHeight(string value)
The value that configures the maxheight.
Returns:The maximum width (in pixels) that may be achieved by resizing the window.
public DialogBuilder MaxWidth(double value)
The value that configures the maxwidth.
Returns:The maximum width (in pixels) that may be achieved by resizing the window.
public DialogBuilder MaxWidth(string value)
The value that configures the maxwidth.
Returns:Defines the text of the labels that are shown within the dialog. Used primarily for localization.
public DialogBuilder Messages(Action<DialogMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:The minimum height (in pixels) that may be achieved by resizing the window.
public DialogBuilder MinHeight(double value)
The value that configures the minheight.
Returns:The minimum height (in pixels) that may be achieved by resizing the window.
public DialogBuilder MinHeight(string value)
The value that configures the minheight.
Returns:The minimum width (in pixels) that may be achieved by resizing the window.
public DialogBuilder MinWidth(double value)
The value that configures the minwidth.
Returns:The minimum width (in pixels) that may be achieved by resizing the window.
public DialogBuilder MinWidth(string value)
The value that configures the minwidth.
Returns:Specifies whether the dialog should show a modal overlay over the page.
public DialogBuilder Modal(Action<DialogModalSettingsBuilder> configurator)
The action that configures additional modality settings.
Returns:Specifies whether the dialog should show a modal overlay over the page.
public DialogBuilder Modal(bool enabled)
Enables or disables the modal option.
Returns:Set predefined size to the dialog. The width and height configuration options override the predefined size.Possible values are: auto; small; medium or large.
public DialogBuilder Size(string value)
The value that configures the size.
Returns:Specifies whether the dialog title will be initially visible.
public DialogBuilder Title(bool show)
The value that configures the visibility of the title.
Returns:The text in the dialog title bar. If false, the dialog will be displayed without a title bar.
public DialogBuilder Title(string value)
The value that configures the title of the dialog.
Returns:Specifies whether the dialog will be initially visible.
public DialogBuilder Visible(bool value)
If true, the dialog will be initially visible.
Returns:Specifies width of the dialog.
public DialogBuilder Width(double value)
The value that configures the width.
Returns:Specifies width of the dialog.
public DialogBuilder Width(string value)
The value that configures the width.
Returns: