New to Telerik UI for ASP.NET CoreStart a free 30-day trial

ASP.NET Core Window Overview

The Telerik UI Window TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers 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.

Initializing the Window

The following example demonstrates how to define the Window.

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

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
    @(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

FeatureDescription
DimensionsThe Window supports setting different dimensions.
PositioningIt is possible to predefine the position of the Window.
Constraining the positionThe draggable area can be restricted.
Loading contentThe MultiSelect offers dynamic content loading.
Using iframeYou can configure the Window to display its content in an iframe.
Integration with formsThe Window has a built-in integration with the Form component.
Custom actionsOne of the powerful capabilities of the Window is customizing its actions.
AnimationsThe Window provides rich animation configuration.
AccessibilityThe Window is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support.

Next Steps

See Also