# ASP.NET MVC Window Overview

The Telerik UI Window HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI Window widget.

The Window displays content in a modal or non-modal HTML window. By default, the user can move, resize, and close a Window. Its content can also be defined either as static HTML or dynamically loaded with AJAX.

* [Demo page for the Window HtmlHelper](https://demos.telerik.com/aspnet-mvc/window/index)

## Initializing the Window

The following example demonstrates how to define the Window.

```Razor HtmlHelper
    @(Html.Kendo().Window()
        .Name("window")
        .Title("Window title")
        .Content(@<text>
                Static content of the Window.
        </text>)
    )
```

```C# Controller
    public class WindowController  : Controller
    {
        public ActionResult Index()
        {
            return View();
        }
    }
```

## Basic Configuration

The Window provides default configuration options that can be set during initialization such as height and width, user actions, draggable behavior, initial position, and so on.

The following example demonstrates the basic configuration of the Window.

```Razor HtmlHelper
    @(Html.Kendo().Window()
        .Name("window")
        .Width(500)
        .Height(300)
        .Title("Window title")
        .Visible(true)
        .Actions(actions => actions.Refresh().Minimize().Maximize().Close())
        .LoadContentFrom("AjaxContent", "Window")
        .Draggable(false)
        .Resizable(resizable => resizable.Enabled(false))
    )

    <script type="text/javascript">
        $(function() {
            // The Name() of the Window is used to get its client-side instance.
            var dialog = $("#window").data("kendoWindow");
        });
    </script>
```

## Functionality and Features

| Feature                                                                                                             | Description                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [Dimensions](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/dimensions)                | The Window supports setting different dimensions.                                                              |
| [Positioning](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/positioning)              | It is possible to predefine the position of the Window.                                                        |
| [Constraining the position](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/constrain)  | The draggable area can be restricted.                                                                          |
| [Loading content](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/loading-content)      | The MultiSelect offers dynamic content loading.                                                                |
| [Using iframe](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/use-iframe)              | You can configure the Window to display its content in an iframe.                                              |
| [Integration with forms](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/forms)         | The Window has a built-in integration with the Form component.                                                 |
| [Custom actions](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/custom-actions)        | One of the powerful capabilities of the Window is customizing its actions.                                     |
| [Animations](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/animations)                | The Window provides rich animation configuration.                                                              |
| [Accessibility](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/accessibility/overview) | The Window is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support. |

## Next Steps

* [Getting Started with the Window](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/window/getting-started)
* [Basic Usage of the Window HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/window/index)

## See Also

* [Using the API of the Window for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/window/api)
* [Knowledge Base Section](https://www.telerik.com/aspnet-mvc/documentation/knowledge-base)
