SortableBuilder
Defines the fluent API for configuring the Kendo UI Sortable
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SortableBuilder : WidgetBuilderBase<Sortable, SortableBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Sortable, SortableBuilder>SortableBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SortableBuilder class.
Methods
If set to true the widget will auto-scroll the container when the mouse/finger is close to the top/bottom of it.
If set to true the widget will auto-scroll the container when the mouse/finger is close to the top/bottom of it.
public SortableBuilder AutoScroll(bool value)
The value for AutoScroll
Returns:Returns the current SortableBuilder instance.
Represents the Sortable widget Axis
public SortableBuilder Axis(SortableAxis value)
The value for Axis
Returns:Returns the current SortableBuilder instance.
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.
public SortableBuilder ConnectWith(string value)
The value for ConnectWith
Returns:Returns the current SortableBuilder instance.
Selector that determines the container boundaries in which hint movement will be constrained to.
public virtual SortableBuilder ContainerSelector(string selector)
jQuery selector
Returns:Returns the current SortableBuilder instance.
The cursor that will be shown while user drags sortable item.
public SortableBuilder Cursor(string value)
The value for Cursor
Returns:Returns the current SortableBuilder instance.
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.
public SortableBuilder CursorOffset(Action<SortableCursorOffsetSettingsBuilder> configurator)
The SortableCursorOffsetSettingsBuilder for the cursoroffset setting.
Returns:Returns the current instance of SortableBuilder .
Selector that determines which items are disabled. Disabled items cannot be dragged but are valid sort targets.
public SortableBuilder Disabled(string value)
The value for Disabled
Returns:Returns the current SortableBuilder instance.
Configures the client-side events.
public SortableBuilder Events(Action<SortableEventBuilder> configurator)
The client events action.
Returns:Returns the current SortableBuilder instance.
Selector that determines which items are sortable. Filtered items cannot be dragged and are not valid sort targets.
public SortableBuilder Filter(string value)
The value for Filter
Returns:Returns the current SortableBuilder instance.
The selector to match the DOM element to which the Sortable widget will be instantiated
public virtual SortableBuilder For(string selector)
jQuery selector
Returns:Returns the current SortableBuilder instance.
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.
public SortableBuilder Handler(string value)
The value for Handler
Returns:Returns the current SortableBuilder instance.
HTML string representing the hint element
public virtual SortableBuilder Hint(string content)
Html string
Returns:Returns the current SortableBuilder instance.
Sets JavaScript function which to return the hint for the sorted item.
public virtual SortableBuilder HintHandler(Func<object, object> handler)
The handler code wrapped in a text tag (Razor syntax).
Returns:Returns the current SortableBuilder instance.
Sets JavaScript function which to return the hint for the sorted item.
public virtual SortableBuilder HintHandler(string handler)
JavaScript function name
Returns:Returns the current SortableBuilder instance.
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.
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.
public SortableBuilder HoldToDrag(bool value)
The value for HoldToDrag
Returns:Returns the current SortableBuilder instance.
Selector that determines which elements inside the sorted item's container will be ignored. Useful if the sortable item contains input elements.
public SortableBuilder Ignore(string value)
The value for Ignore
Returns:Returns the current SortableBuilder instance.
If set to true, the user can navigate the widget with the keyboard. By default, keyboard navigation is disabled.
If set to true, the user can navigate the widget with the keyboard. By default, keyboard navigation is disabled.
public SortableBuilder Navigatable(bool value)
The value for Navigatable
Returns:Returns the current SortableBuilder instance.
HTML string representing the placeholder
public virtual SortableBuilder Placeholder(string content)
Html string
Returns:Returns the current SortableBuilder instance.
Sets JavaScript function which to return the placeholder for the sorted item.
public virtual SortableBuilder PlaceholderHandler(Func<object, object> handler)
The handler code wrapped in a text tag (Razor syntax).
Returns:Returns the current SortableBuilder instance.
Sets JavaScript function which to return the placeholder for the sorted item.
public virtual SortableBuilder PlaceholderHandler(string handler)
JavaScript function name
Returns:Returns the current SortableBuilder instance.