Dialog
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Dialog : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseDialog
Implements:
Inherited Members
Constructors
public Dialog(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Properties
A collection of objects containing text, action and primary attributes used to specify the dialog buttons.
public List<DialogAction> Actions { get; set; }
public PopupAnimation Animation { get; set; }
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; }
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; set; }
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 DialogModalSettings Modal { get; set; }
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; }
public HtmlTemplate Template { get; }
Specifies whether the dialog will be initially visible.
public bool? Visible { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: