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

Defines the fluent API for configuring the Kendo Window draggable settings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WindowDraggableSettingsBuilder

Inheritance: objectWindowDraggableSettingsBuilder

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 WindowDraggableSettingsBuilder class.

C#
public WindowDraggableSettingsBuilder(WindowDraggableSettings draggableSettings)
Parameters:draggableSettingsWindowDraggableSettings

The draggable settings.

Methods

Sets the axis for window's movement. Possible values: "x", "y"

C#
public WindowDraggableSettingsBuilder Axis(string axis)
Parameters:axisstring

The axis.

Returns:

WindowDraggableSettingsBuilder

Example:
C#
@(Html.Kendo().Window()
.Name("Window")
.Draggable(d => d.Axis("x"))
)

Sets the selector for containment element.

C#
public WindowDraggableSettingsBuilder Containment(string selector)
Parameters:selectorstring

The selector for the containment element.

Returns:

WindowDraggableSettingsBuilder

Example:
C#
@(Html.Kendo().Window()
.Name("Window")
.Draggable(d => d.Containment("#container"))
)

Sets the selector for drag handle element.

C#
public WindowDraggableSettingsBuilder DragHandle(string selector)
Parameters:selectorstring

The selector for the drag handle.

Returns:

WindowDraggableSettingsBuilder

Example:
C#
@(Html.Kendo().Window()
.Name("Window")
.Draggable(d => d.DragHandle("#handle"))
)