New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the Kendo Window resizing settings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WindowResizingSettingsBuilder

Inheritance: objectWindowResizingSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the WindowResizingSettingsBuilder class.

C#
public WindowResizingSettingsBuilder(WindowResizingSettings settings)
Parameters:settingsWindowResizingSettings

The resizing settings.

Methods

Enables or disables the Window resizing.

C#
public WindowResizingSettingsBuilder Enabled(bool enable)
Parameters:enablebool

If true, enables the Window resizing.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.Enabled(true))
)

Sets the max height of the Window.

C#
public WindowResizingSettingsBuilder MaxHeight(int maxHeight)
Parameters:maxHeightint

The max height of the Window.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MaxHeight(300))
)

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

C#
public WindowResizingSettingsBuilder MaxHeight(string value)
Parameters:valuestring

The value that configures the maxheight.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MaxHeight("300"))
)

Sets the max width of the Window.

C#
public WindowResizingSettingsBuilder MaxWidth(int maxWidth)
Parameters:maxWidthint

The max width of the Window.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MaxWidth(400))
)

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

C#
public WindowResizingSettingsBuilder MaxWidth(string value)
Parameters:valuestring

The value that configures the maxwidth.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MaxWidth("400"))
)

Sets the min height of the Window.

C#
public WindowResizingSettingsBuilder MinHeight(int minHeight)
Parameters:minHeightint

The min height of the Window.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MinHeight(100))
)

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

C#
public WindowResizingSettingsBuilder MinHeight(string value)
Parameters:valuestring

The value that configures the minheight.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MinHeight("100"))
)

Sets the min width of the Window.

C#
public WindowResizingSettingsBuilder MinWidth(int minWidth)
Parameters:minWidthint

The min width of the Window.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MinWidth(200))
)

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

C#
public WindowResizingSettingsBuilder MinWidth(string value)
Parameters:valuestring

The value that configures the minwidth.

Returns:

WindowResizingSettingsBuilder

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
.Resizable(x => x.MinWidth("200"))
)