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

Window

Class

Definition

Constructors

C#
public Window(ViewContext viewContext, IUrlGenerator urlGenerator, IJavaScriptInitializer initializer)
Parameters:viewContextViewContexturlGeneratorIUrlGeneratorinitializerIJavaScriptInitializer

Properties

C#
public WindowButtons Actions { get; }
C#
public PopupAnimation Animation { get; set; }
C#
public string AppendTo { get; set; }
C#
public bool AutoFocus { get; set; }

The action which will output the content.

C#
public Action Content { get; set; }

Implements: IContentContainer.Content

The HtmlAttributes which will be added to the wrapper of the content.

C#
public IDictionary<string, object> ContentHtmlAttributes { get; }

Implements: IContentContainer.ContentHtmlAttributes

C#
public WindowContentSettings ContentSettings { get; set; }

Url, which will be used as a destination for the Ajax request.

C#
public string ContentUrl { get; set; }

Implements: IAsyncContentContainer.ContentUrl

C#
public bool Draggable { get; set; }
C#
public WindowDraggableSettings DraggableSettings { get; set; }
C#
public string Height { get; set; }
C#
public string Html { get; set; }
C#
public string IconAlternativeText { get; set; }
C#
public string IconUrl { get; set; }
C#
public bool Iframe { get; set; }
C#
public bool Modal { get; set; }
C#
public WindowModalSettings ModalSettings { get; set; }
C#
public bool Pinned { get; set; }
C#
public WindowPositionSettings PositionSettings { get; }
C#
public WindowResizingSettings ResizingSettings { get; }
C#
public bool Scrollable { get; set; }

Set predefined size to the window. 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; }
C#
public WindowTitleSettings TitleSettings { get; set; }
C#
public IUrlGenerator UrlGenerator { get; }
C#
public bool Visible { get; set; }
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)