Edit this page

Window HtmlHelper Overview

The Window HtmlHelper extension is a server-side wrapper for the Kendo UI Window widget.

It enables you to configure the Window from server-side code. 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 through AJAX.

For more information on the HtmlHelper, refer to the article on the Window HtmlHelper for ASP.NET MVC.

Basic Usage

The following example demonstrates how to define the Window by using the Window HtmlHelper.

    .Title("Window title")
            Static content of the Window.
    public class WindowController  : Controller
        public ActionResult Index()
            return View();


The following example demonstrates the basic configuration of the Window HtmlHelper and how to get the Window instance.

        .Title("Window title")
        .Actions(actions => actions.Refresh().Minimize().Maximize().Close())
        .LoadContentFrom("ajaxcontent1", "window")
        .Events(events => events

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

See Also