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

Defines the fluent API for configuring ListBoxDraggableSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ListBoxDraggableSettingsBuilder

Inheritance: objectListBoxDraggableSettingsBuilder

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

Constructors

ListBoxDraggableSettingsBuilder method.

C#
public ListBoxDraggableSettingsBuilder(ListBoxDraggableSettings container)
Parameters:containerListBoxDraggableSettings

Properties

Gets the settings being configured.

C#
protected ListBoxDraggableSettings Container { get; }

Methods

Indicates whether dragging is enabled.

C#
public ListBoxDraggableSettingsBuilder Enabled(bool value)
Parameters:valuebool

The value for Enabled

Returns:

ListBoxDraggableSettingsBuilder

Returns the current ListBoxDraggableSettingsBuilder instance.

Example:
C#
@(Html.Kendo().ListBox()
.Name("listBox")
.Draggable(d => d.Enabled(true))
)

Provides an option to customize the draggable item hint. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a hint is not provided, the ListBox clones the dragged item and uses it as a hint.

C#
public ListBoxDraggableSettingsBuilder Hint(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ListBoxDraggableSettingsBuilder

Returns the current ListBoxDraggableSettingsBuilder instance.

Provides an option to customize the draggable item hint. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a hint is not provided, the ListBox clones the dragged item and uses it as a hint.

C#
public ListBoxDraggableSettingsBuilder Hint(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ListBoxDraggableSettingsBuilder

Returns the current ListBoxDraggableSettingsBuilder instance.

Provides an option to customize the item placeholder of the ListBox. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a placeholder is not provided, the ListBox clones the dragged item, removes its id attribute, sets its visibility to hidden, and uses it as a placeholder.

C#
public ListBoxDraggableSettingsBuilder Placeholder(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ListBoxDraggableSettingsBuilder

Returns the current ListBoxDraggableSettingsBuilder instance.

Provides an option to customize the item placeholder of the ListBox. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a placeholder is not provided, the ListBox clones the dragged item, removes its id attribute, sets its visibility to hidden, and uses it as a placeholder.

C#
public ListBoxDraggableSettingsBuilder Placeholder(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ListBoxDraggableSettingsBuilder

Returns the current ListBoxDraggableSettingsBuilder instance.