Kendo.Mvc.UI.Fluent.WindowBuilder

Defines the fluent API for configuring the Kendo UI Window

Methods

Actions(System.Action<Kendo.Mvc.UI.Fluent.WindowActionsBuilder>)

Configures the window buttons.

Parameters

actionsBuilderAction System.Action<Kendo.Mvc.UI.Fluent.WindowActionsBuilder>

The buttons configuration action.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Actions(actions =>
        actions.Close()
    )
%>

Draggable(System.Action<Kendo.Mvc.UI.Fluent.WindowDraggableSettingsBuilder>)

Enables (true) or disables (false) the ability for users to move/drag the widget.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.WindowDraggableSettingsBuilder>

The configurator for the draggable setting.

Draggable(System.Boolean)

Enables (true) or disables (false) the ability for users to move/drag the widget.

Parameters

enabled System.Boolean

Enables or disables the draggable option.

Animation(System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>)

Configures the animation effects of the panelbar.

Parameters

animationAction System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>

The action that configures the animation.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Animation(animation => animation.Expand)

Animation(System.Boolean)

Configures the animation effects of the window.

Parameters

enable System.Boolean

Whether the component animation is enabled.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Animation(false)

Title(System.Action<Kendo.Mvc.UI.Fluent.WindowTitleSettingsBuilder>)

The text in the window title bar. If false, the window will be displayed without a title bar. Note that this will prevent the window from being dragged, and the window titlebar buttons will not be shown.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.WindowTitleSettingsBuilder>

The configurator for the title setting.

Title(System.Boolean)

Allows title to be shown / hidden

Parameters

show System.Boolean

Whether the window title will be visible

Title(System.String)

Sets title, which appears in the header of the window.

AppendTo(System.String)

Defines a selector for the element to which the Window will be appended. By default this is the page body.

Parameters

selector System.String

A selector of the Window container

Content(System.Action)

Sets the HTML content which the window should display.

Parameters

value System.Action

The action which renders the content.

Example (ASPX)

<% Html.Kendo().Window()
    .Name("Window")
    .Content(() =>
    {
        %>
        <strong>Window content</strong>
        <%
    })
%>

Content(System.Func<System.Object,System.Object>)

Sets the HTML content which the window should display

Parameters

value System.Func<System.Object,System.Object>

The Razor inline template

Example (ASPX)

@(Html.Kendo().Window()
    .Name("Window")
    .Content(@<strong> Hello World!</strong>))

Content(System.String)

Sets the HTML content which the item should display as a string.

Parameters

value System.String

The action which renders the content.

Draggable

Enables (true) or disables (false) the ability for users to move/drag the widget.

Parameters

value ``

The value for Draggable

LoadContentFrom(Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the Url, which will be requested to return the content.

Parameters

routeValues Microsoft.AspNetCore.Routing.RouteValueDictionary

The route values of the Action method.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary());
%>

LoadContentFrom(System.String,System.String)

Sets the Url, which will be requested to return the content.

Parameters

actionName System.String

The action name.

controllerName System.String

The controller name.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .LoadContentFrom("AjaxView_OpenSource", "Window")
%>

LoadContentFrom(System.String,System.String,System.Object)

Sets the Url, which will be requested to return the content.

Parameters

actionName System.String

The action name.

controllerName System.String

The controller name.

routeValues System.Object

Route values.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .LoadContentFrom("AjaxView_OpenSource", "Window", new { id = 10})
%>

LoadContentFrom(System.String)

Sets the Url, which will be requested to return the content.

Parameters

value System.String

The url.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .LoadContentFrom(Url.Action("AjaxView_OpenSource", "Window"))
%>

Resizable

Enables windows resizing.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Resizable()
%>

Resizable(System.Action<Kendo.Mvc.UI.Fluent.WindowResizingSettingsBuilder>)

Configures the resizing ability of the window.

Parameters

resizingSettingsAction System.Action<Kendo.Mvc.UI.Fluent.WindowResizingSettingsBuilder>

Resizing settings action.

Example (ASPX)

<%= Html.Kendo().Window()
    .Name("Window")
    .Resizable(settings =>
        settings.Enabled(true).MaxHeight(500).MaxWidth(500)
    )
%>

AutoFocus(System.Boolean)

Determines whether the Window will be focused automatically when opened. The property also influences the focus behavior when the Window is clicked when already opened.

Parameters

value System.Boolean

The value for AutoFocus

Iframe(System.Boolean)

Explicitly states whether a content iframe should be created. For more information, please read Using iframes.

Parameters

value System.Boolean

The value for Iframe

Height(System.Double)

Specifies height of the window.

Parameters

value System.Double

The value for Height

MaxHeight(System.Double)

The maximum height (in pixels) that may be achieved by resizing the window.

Parameters

value System.Double

The value for MaxHeight

MaxWidth(System.Double)

The maximum width (in pixels) that may be achieved by resizing the window.

Parameters

value System.Double

The value for MaxWidth

MinHeight(System.Double)

The minimum height (in pixels) that may be achieved by resizing the window.

Parameters

value System.Double

The value for MinHeight

MinWidth(System.Double)

The minimum width (in pixels) that may be achieved by resizing the window.

Parameters

value System.Double

The value for MinWidth

Modal(System.Boolean)

Specifies whether the window should show a modal overlay over the page.

Parameters

value System.Boolean

The value for Modal

Modal

Specifies whether the window should show a modal overlay over the page.

Pinned(System.Boolean)

Specifies whether the window should be pinned, i.e. it will not move together with the page content during scrolling.

Parameters

value System.Boolean

The value for Pinned

Pinned

Specifies whether the window should be pinned, i.e. it will not move together with the page content during scrolling.

Position(System.Action<Kendo.Mvc.UI.Fluent.WindowPositionSettingsBuilder>)

A collection of one or two members, which define the initial Window's top and/or left position on the page or the containment element.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.WindowPositionSettingsBuilder>

The configurator for the position setting.

Scrollable(System.Boolean)

Enables (true) or disables (false) the ability for users to scroll the window contents.

Parameters

value System.Boolean

The value for Scrollable

Visible(System.Boolean)

Specifies whether the window will be initially visible.

Parameters

value System.Boolean

The value for Visible

Width(System.Double)

Specifies width of the window.

Parameters

value System.Double

The value for Width

Events(System.Action<Kendo.Mvc.UI.Fluent.WindowEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.WindowEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().Window()
    .Name("Window")
    .Events(events => events
        .Activate("onActivate")
    )
)