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

Window

Class

Kendo UI Window component

Definition

Constructors

Initializes a new instance of the Window class.

C#
public Window(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Actions member.

C#
public WindowButtons Actions { get; }

Animation member.

C#
public PopupAnimation Animation { get; }

Gets or sets the AppendTo.

C#
public string AppendTo { get; set; }

Determines whether the Window will be focused automatically when opened. The property also influences the focus behavior when an already opened Window is clicked.

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

Content member.

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

ContentAction member.

C#
public Action ContentAction { get; set; }

ContentHtmlAttributes member.

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

Gets or sets the ContentUrl.

C#
public string ContentUrl { get; set; }

Draggable member.

C#
public bool Draggable { get; set; }

DraggableSettings member.

C#
public WindowDraggableSettings DraggableSettings { get; }

Specifies the height of the Window.

C#
public string Height { get; set; }

Gets or sets the Html.

C#
public string Html { get; set; }

Explicitly states whether a content iframe will be created. For more information, refer to the documentation on using iframes.

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

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

C#
public string MaxHeight { get; set; }

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

C#
public string MaxWidth { get; set; }

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

C#
public string MinHeight { get; set; }

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

C#
public string MinWidth { get; set; }

Modal member.

C#
public bool Modal { get; set; }

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

C#
public WindowModalSettings ModalSettings { get; }

Specifies whether the Window will be pinned, that is, that it will not move together with the page content during scrolling.

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

A collection of one or two members which define the initial top and/or left position of the Window or the position of the containment element on the page.

C#
public WindowPositionSettings Position { get; }

ResizingSettings member.

C#
public WindowResizingSettings ResizingSettings { get; }

Enables (true) or disables (false) the scrolling of the Window contents.

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

Sets a predefined size to the Window. The width and height configuration options override the predefined size.The supported values are: auto; small; medium or large.

C#
public string Size { get; set; }

Title member.

C#
public object Title { get; set; }

TitleSettings member.

C#
public WindowTitleSettings TitleSettings { get; }

Specifies whether the Window will be initially visible.

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

Specifies the width of the Window.

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)