WindowBuilder
Defines the fluent interface for configuring the Window component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class WindowBuilder : WidgetBuilderBase<Window, WindowBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Window, WindowBuilder>WindowBuilder
Implements:
Inherited Members
Constructors
Methods
Configures the window buttons.
public WindowBuilder Actions(Action<WindowActionsBuilder> actionsBuilderAction)
The buttons configuration action.
Returns:Configures the animation effects of the panelbar.
public WindowBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:Enables or disables the animation effects of the window.
public WindowBuilder Animation(bool enable)
If true, enables the window animation
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:Sets whether the window automatically gains focus when opened.
public WindowBuilder AutoFocus(bool value)
If true, the Window is focused automatically when opened.
Returns:Sets the HTML content which the window should display.
public WindowBuilder Content(Action value)
The action which renders the content.
Returns:Sets the HTML content which the item should display as a string.
public WindowBuilder Content(string value)
The action which renders the content.
Returns:Configure how the window content is fetched, parsed, and rendered
public WindowBuilder ContentSettings(Action<WindowContentBuilder> action)
The content settings action
Returns:Sets whether the window can be moved.
Configures the draggable settings.
public WindowBuilder Draggable(Action<WindowDraggableSettingsBuilder> draggableSettings)
The configurator for the draggable setting.
Returns:Sets whether the window can be moved.
Configures the client-side events.
public WindowBuilder Events(Action<WindowEventBuilder> clientEventsAction)
The client events action.
Returns:Sets the height of the window.
Sets the height of the window.
public WindowBuilder Height(string height)
The height of the window.
Returns:Explicitly specifies whether the loaded window content will be rendered as an iframe or in-line
public WindowBuilder Iframe(bool value)
If true, enables the iframe, otherwise disables it.
Returns:Sets the Url, which will be requested to return the content.
public WindowBuilder LoadContentFrom(RouteValueDictionary routeValues)
The route values of the Action method.
Returns:Sets the Url, which will be requested to return the content.
Sets the Url, which will be requested to return the content.
Specifies whether the dialog should show a modal overlay over the page.
public WindowBuilder Modal(Action<WindowModalSettingsBuilder> configurator)
The action that configures the modal.
Returns:Sets whether the window should be modal or not.
public WindowBuilder Modal(bool modal)
If true, makes the window modal.
Returns:Sets whether the window is pinned.
Sets whether the window is pinned.
Configures the position of the window.
public WindowBuilder Position(Action<WindowPositionSettingsBuilder> positionSettingsAction)
Position settings action.
Returns:Enables windows resizing.
Configures the resizing ability of the window.
public WindowBuilder Resizable(Action<WindowResizingSettingsBuilder> resizingSettingsAction)
Resizing settings action.
Returns:Sets whether the window should have scrollbars.
public WindowBuilder Scrollable(bool scrollable)
If true, enables scrolling in the window.
Returns:Set predefined size to the window. The width and height configuration options override the predefined size.Possible values are: auto; small; medium or large.
public WindowBuilder Size(string value)
The value that configures the size.
Returns: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> titleSettings)
The configurator for the title setting.
Returns:Allows title to be shown / hidden
Sets title, which appears in the header of the window.
Sets whether the window should be rendered visible.
public WindowBuilder Visible(bool visible)
If true, the window is initially visible, otherwise it is hidden.
Returns:Sets the width of the window.
Sets the width of the window.