New to Kendo UI for jQuery? Download free 30-day trial

Getting Started with the Window

This guide demonstrates how to get up and running with the Kendo UI for jQuery Window.

After the completion of this guide, you will be able to achieve the following end result:

<div id="window"></div>

<script>
    $("#window").kendoWindow({
      height:500,
      width:500,
      title: "Your Kendo Window",
      content: "../content/web/window/ajax/ajaxContent.html"
    });
</script>

1. Create an Empty div Element

First, create an empty <div> element on the page that will serve as the main container of the Window widget.

<div id="window"></div>

2. Initialize the Window

In this step, you will initialize the Window from the empty <div> element. When you initialize the widget from an empty div, all settings of the Window will be provided in the initialization script statement and you have to describe its layout and configuration in JavaScript.

<div id="window"></div>

<script>
    // Target the div element by using jQuery and then call the kendoWindow() method.
    $("#window").kendoWindow({
        // Add some basic configurations such as width and height.
        width: 500,
        height: 500
    });
</script>

3. Load the Content with AJAX

Once the basic initialization is completed, you can start adding additional configurations to the Window such as loading its content through an AJAX request.

<div id="window"></div>

<script>
    $("#window").kendoWindow({
      height:500,
      width:500,
      title: "Your Kendo Window",
      content: "../content/web/window/ajax/ajaxContent.html"
    });
</script>

Next Steps

See Also

In this article