• center () : Window
    Centers a Window within the viewport.

    Example

    var kendoWindow = $("#window").data("kendoWindow");
    kendoWindow.center();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • close () : Window
    Closes a Window.

    Close a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").close();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • content (content) : Window
    Gets or set the content of a Window.

    Get the existing content of the Window

    var kendoWindow = $("#window").data("kendoWindow");
    var windowContent = kendoWindow.content();

    Set the title of a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").content("Kendo UI for all the things!");

    Parameters

    content: String (optional)
    The content of the Window.
    Returns
    Window If content is provided, this method will return the (Kendo UI) Window object to support chaining. Otherwise, it will return the current content of the (Kendo UI) Window.
  • destroy ()
    Destroys the window and its modal overlay, if necessary. Removes the Window HTML elements from the DOM.
  • maximize () : Window
    Maximizes a Window to the entire viewing area of the user agent. Triggers the resize event.

    Maximize a Window

    $("#window").data("kendoWindow").maximize();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • minimize () : Window
    Maximizes a Window to its title bar.

    Minimize a Window

    $("#window").data("kendoWindow").minimize();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • open () : Window
    Opens a Window.

    Open a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").open();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • refresh (options) : Window
    Refreshes the content of a Window from a remote URL.

    Example

    var windowObject = $("#window").data("kendoWindow");
    windowObject.refresh("/feedbackForm");
    
    windowObject.refresh({
        url: "/feedbackForm",
        data: { userId: 42 }
    });
    
    windowObject.refresh({
        url: "/userInfo",
        data: { userId: 42 },
        template: "Hello, #= firstName # #= lastName #"
    });

    Parameters

    options: Object|String
    Options for requesting data from the server. If omitted, the window uses the content property that was supplied when the window was created. Any options specified here are passed to jQuery.ajax().
    options.url: String
    The server URL that will be requested.
    options.data: Object
    A JSON object containing the data that will be passed to the server.
    options.type: String
    The HTTP request method ("GET", "POST").
    options.template: String
    A template to be used for displaying the requested data.
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • restore () : Window
    Restores a maximized or minimized Window to its previous state. Triggers the resize event.

    Restore the state of a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").restore();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • title (text) : Window
    Gets or set the title of a Window.

    Get the existing title of the Window

    var kendoWindow = $("#window").data("kendoWindow");
    var windowTitle = kendoWindow.title();

    Set the title of a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").title("Do a barrel roll!");

    Parameters

    text: String (optional)
    The title of the Window.
    Returns
    Window If a title is provided, this method will return the (Kendo UI) Window object to support chaining. Otherwise, it will return the current title of the (Kendo UI) Window.
  • toFront () : Window
    Brings forward a Window to the top of the z-index.

    Bring forward a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").toFront();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.
  • toggleMaximization () : Window
    Toggles a Window between a maximized and restored state. Triggers the resize event.

    Toggle the state of a Window; utilize chaining (if necessary)

    var kendoWindow = $("#window").data("kendoWindow").toggleMaximization();
    Returns
    Window Returns the (Kendo UI) Window object to support chaining.