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

Dialog

Class

Definition

Constructors

C#
public Dialog(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContextinitializerIJavaScriptInitializerurlGeneratorIUrlGenerator

Properties

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

C#
public List<DialogAction> Actions { get; set; }
C#
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.

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 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; set; }

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

C#
public string Size { get; set; }
C#
public HtmlTemplate Template { get; }
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

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)