New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Dialog

Class

Kendo UI Dialog component

Definition

Constructors

Initializes a new instance of the Dialog class.

C#
public Dialog(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

A collection of objects containing text, action and primary attributes used to specify the dialog buttons.

C#
public List<DialogAction> Actions { get; set; }

Animation member.

C#
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.

C#
public string ButtonLayout { get; set; }

Specifies whether a close button should be rendered at the top corner of the dialog.

C#
public bool? Closable { get; set; }

The content of the dialog

C#
public string Content { get; set; }

Specifies the content action delegate that will be rendred for the dialog.

C#
public Action ContentAction { get; set; }

Specifies the content function delegate that will be rendred for the dialog.

C#
public Func<object, object> ContentFunc { get; set; }

Specifies height of the dialog.

C#
public string Height { get; set; }

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

C#
public string MaxHeight { get; set; }

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

C#
public string MaxWidth { get; set; }

Defines the text of the labels that are shown within the dialog. Used primarily for localization.

C#
public DialogMessagesSettings Messages { get; }

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

C#
public string MinHeight { get; set; }

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

C#
public string MinWidth { get; set; }

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

C#
public bool Modal { get; set; }

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

C#
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.

C#
public string Size { get; set; }

Title member.

C#
public object Title { get; set; }

Specifies whether the dialog will be initially visible.

C#
public bool? Visible { get; set; }

Specifies width of the dialog.

C#
public string Width { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)