Dialog
Kendo UI Dialog component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Dialog : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseDialog
Implements:
Inherited Members
Constructors
Initializes a new instance of the Dialog class.
Properties
A collection of objects containing text, action and primary attributes used to specify the dialog buttons.
public List<DialogAction> Actions { get; set; }
Animation member.
public PopupAnimation Animation { get; }
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 string ButtonLayout { get; set; }
Specifies whether a close button should be rendered at the top corner of the dialog.
public bool? Closable { get; set; }
Specifies the content action delegate that will be rendred for the dialog.
public Action ContentAction { get; set; }
Specifies the content function delegate that will be rendred for the dialog.
public Func<object, object> ContentFunc { get; set; }
The maximum height (in pixels) that may be achieved by resizing the dialog.
public string MaxHeight { get; set; }
The maximum width (in pixels) that may be achieved by resizing the dialog.
public string MaxWidth { get; set; }
Defines the text of the labels that are shown within the dialog. Used primarily for localization.
public DialogMessagesSettings Messages { get; }
The minimum height (in pixels) that may be achieved by resizing the dialog.
public string MinHeight { get; set; }
The minimum width (in pixels) that may be achieved by resizing the dialog.
public string MinWidth { get; set; }
Specifies whether the dialog should show a modal overlay over the page.
public bool Modal { get; set; }
Specifies whether the dialog should show a modal overlay over the page.
public DialogModalSettings ModalSettings { get; }
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 string Size { get; set; }
Specifies whether the dialog will be initially visible.
public bool? Visible { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: