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

Kendo UI Sortable component

Definition

Constructors

Initializes a new instance of the Sortable class.

C#
public Sortable(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

If set to true the widget will auto-scroll the container when the mouse/finger is close to the top/bottom of it.

C#
public bool? AutoScroll { get; set; }

Represents the Sortable widget Axis

C#
public SortableAxis? Axis { get; set; }

Selector which determines if items from the current Sortable widget can be accepted from another Sortable container(s). The connectWith option describes one way relationship, if the developer wants a two way connection then the connectWith option should be set on both widgets.

C#
public string ConnectWith { get; set; }

ContainerSelector member.

C#
public string ContainerSelector { get; set; }

The cursor that will be shown while user drags sortable item.

C#
public string Cursor { get; set; }

If set, specifies the offset of the hint relative to the mouse cursor/finger. By default, the hint is initially positioned on top of the draggable source offset. The option accepts an object with two keys: top and left.

C#
public SortableCursorOffsetSettings CursorOffset { get; }

Selector that determines which items are disabled. Disabled items cannot be dragged but are valid sort targets.

C#
public string Disabled { get; set; }

Selector that determines which items are sortable. Filtered items cannot be dragged and are not valid sort targets.

C#
public string Filter { get; set; }

Selector that determines which element will be used as a draggable handler. If a handler is defined, the user will be able to move the Sortable items only if the cursor/finger is positioned onto the handler element.

C#
public string Handler { get; set; }

Hint member.

C#
public string Hint { get; set; }

HintHandler member.

C#
public ClientHandlerDescriptor HintHandler { get; set; }

Suitable for touch oriented user interface, in order to avoid collision with the touch scrolling gesture. When set to true, the item will be activated after the user taps and holds the finger on the element for a short amount of time. The item will also be activated by pressing, holding and lifting the finger without any movement. Dragging it afterwards will initiate the drag immediately.

C#
public bool? HoldToDrag { get; set; }

Selector that determines which elements inside the sorted item's container will be ignored. Useful if the sortable item contains input elements.

C#
public string Ignore { get; set; }

If set to true, the user can navigate the widget with the keyboard. By default, keyboard navigation is disabled.

C#
public bool? Navigatable { get; set; }

Placeholder member.

C#
public string Placeholder { get; set; }

PlaceholderHandler member.

C#
public ClientHandlerDescriptor PlaceholderHandler { get; set; }

SortableContainer member.

C#
public string SortableContainer { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

VerifySettings method.

C#
public override void VerifySettings()

Overrides: WidgetBase.VerifySettings()

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)