WindowBuilder
Defines the fluent API for configuring the Kendo UI Window
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class WindowBuilder : WidgetBuilderBase<Window, WindowBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Window, WindowBuilder>WindowBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the WindowBuilder class.
Methods
Configures the window buttons.
public WindowBuilder Actions(Action<WindowActionsBuilder> actionsBuilderAction)
The buttons configuration action.
Returns:Returns the current WindowBuilder instance.
Configures the animation effects of the panelbar.
public WindowBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:Returns the current WindowBuilder instance.
Configures the animation effects of the window.
public WindowBuilder Animation(bool enable)
Whether the component animation is enabled.
Returns:Defines a selector for the element to which the Window will be appended. By default this is the page body.
public WindowBuilder AppendTo(string selector)
A selector of the Window container
Returns:Returns the current WindowBuilder instance.
Determines whether the Window will be focused automatically when opened. The property also influences the focus behavior when an already opened Window is clicked.
public WindowBuilder AutoFocus(bool value)
The value for AutoFocus
Returns:Returns the current WindowBuilder instance.
Sets the HTML content which the window should display.
public WindowBuilder Content(Action value)
The action which renders the content.
Returns:Returns the current WindowBuilder instance.
Sets the HTML content which the window should display
public WindowBuilder Content(Func<object, object> value)
The Razor inline template
Returns:Returns the current WindowBuilder instance.
Sets the HTML content which the item should display as a string.
public WindowBuilder Content(string value)
The action which renders the content.
Returns:Returns the current WindowBuilder instance.
Enables (true) or disables (false) the ability for users to move/drag the widget.
Enables (true) or disables (false) the ability for users to move/drag the widget.
public WindowBuilder Draggable(Action<WindowDraggableSettingsBuilder> configurator)
The configurator for the draggable setting.
Returns:Enables (true) or disables (false) the ability for users to move/drag the widget.
public WindowBuilder Draggable(bool enabled)
Enables or disables the draggable option.
Returns:Returns the current WindowBuilder instance.
Configures the client-side events.
public WindowBuilder Events(Action<WindowEventBuilder> configurator)
The client events action.
Returns:Returns the current WindowBuilder instance.
Specifies the height of the Window.
public WindowBuilder Height(double value)
The value for Height
Returns:Returns the current WindowBuilder instance.
Specifies the height of the Window.
public WindowBuilder Height(string value)
The value for Height
Returns:Returns the current WindowBuilder instance.
Explicitly states whether a content iframe will be created. For more information, refer to the documentation on using iframes.
public WindowBuilder Iframe(bool value)
The value for Iframe
Returns:Returns the current WindowBuilder instance.
Sets the Url, which will be requested to return the content.
public WindowBuilder LoadContentFrom(RouteValueDictionary routeValues)
The route values of the Action method.
Returns:Returns the current WindowBuilder instance.
Sets the Url, which will be requested to return the content.
public WindowBuilder LoadContentFrom(string actionName, string controllerName, object routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesobjectRoute values.
Returns:Returns the current WindowBuilder instance.
Sets the Url, which will be requested to return the content.
public WindowBuilder LoadContentFrom(string actionName, string controllerName, RouteValueDictionary routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesRouteValueDictionaryRoute values.
Returns:Returns the current WindowBuilder instance.
Sets the Url, which will be requested to return the content.
public WindowBuilder LoadContentFrom(string actionName, string controllerName)
The action name.
controllerNamestringThe controller name.
Returns:Returns the current WindowBuilder instance.
Sets the Url, which will be requested to return the content.
public WindowBuilder LoadContentFrom(string value)
The url.
Returns:Returns the current WindowBuilder instance.
The maximum height (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MaxHeight(double value)
The value for MaxHeight
Returns:Returns the current WindowBuilder instance.
The maximum height (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MaxHeight(string value)
The value for MaxHeight
Returns:Returns the current WindowBuilder instance.
The maximum width (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MaxWidth(double value)
The value for MaxWidth
Returns:Returns the current WindowBuilder instance.
The maximum width (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MaxWidth(string value)
The value for MaxWidth
Returns:Returns the current WindowBuilder instance.
The minimum height (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MinHeight(double value)
The value for MinHeight
Returns:Returns the current WindowBuilder instance.
The minimum height (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MinHeight(string value)
The value for MinHeight
Returns:Returns the current WindowBuilder instance.
The minimum width (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MinWidth(double value)
The value for MinWidth
Returns:Returns the current WindowBuilder instance.
The minimum width (in pixels) that may be achieved by resizing the Window.
public WindowBuilder MinWidth(string value)
The value for MinWidth
Returns:Returns the current WindowBuilder instance.
Specifies whether the window should show a modal overlay over the page.
Specifies whether the window should show a modal overlay over the page.
public WindowBuilder Modal(Action<WindowModalSettingsBuilder> configurator)
The configurator for the modal setting.
Returns:Returns the current WindowBuilder instance.
Specifies whether the window should show a modal overlay over the page.
public WindowBuilder Modal(bool enabled)
Enables or disables the modal option.
Returns:Returns the current WindowBuilder instance.
Specifies whether the Window will be pinned, that is, that it will not move together with the page content during scrolling.
Specifies whether the Window will be pinned, that is, that it will not move together with the page content during scrolling.
public WindowBuilder Pinned(bool value)
The value for Pinned
Returns:Returns the current WindowBuilder instance.
A collection of one or two members which define the initial top and/or left position of the Window or the position of the containment element on the page.
public WindowBuilder Position(Action<WindowPositionSettingsBuilder> configurator)
The configurator for the position setting.
Returns:Returns the current WindowBuilder instance.
Enables windows resizing.
Configures the resizing ability of the window.
public WindowBuilder Resizable(Action<WindowResizingSettingsBuilder> resizingSettingsAction)
Resizing settings action.
Returns:Returns the current WindowBuilder instance.
Enables (true) or disables (false) the scrolling of the Window contents.
public WindowBuilder Scrollable(bool value)
The value for Scrollable
Returns:Returns the current WindowBuilder instance.
Sets a predefined size to the Window. The width and height configuration options override the predefined size.The supported values are: auto; small; medium or large.
public WindowBuilder Size(string value)
The value for Size
Returns:Returns the current WindowBuilder instance.
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.
public WindowBuilder Title(Action<WindowTitleSettingsBuilder> configurator)
The configurator for the title setting.
Returns:Returns the current WindowBuilder instance.
Allows title to be shown / hidden
public WindowBuilder Title(bool show)
Whether the window title will be visible
Returns:Returns the current WindowBuilder instance.
Sets title, which appears in the header of the window.
public WindowBuilder Title(string title)
The title.
Returns:Returns the current WindowBuilder instance.
Specifies whether the Window will be initially visible.
public WindowBuilder Visible(bool value)
The value for Visible
Returns:Returns the current WindowBuilder instance.
Specifies the width of the Window.
public WindowBuilder Width(double value)
The value for Width
Returns:Returns the current WindowBuilder instance.
Specifies the width of the Window.
public WindowBuilder Width(string value)
The value for Width
Returns:Returns the current WindowBuilder instance.