SortableBuilder
Defines the fluent interface for configuring the Sortable component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SortableBuilder : IHtmlString
Inheritance: objectSortableBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SortableBuilder class.
Methods
If set to true the component will auto-scroll the container when the mouse/finger is close to the top/bottom of it.
Constrains the hint movement to either the horizontal (x) or vertical (y) axis.
public virtual SortableBuilder Axis(SortableAxis axis)
The axis
Returns:The selector which determines if items from the current Sortable component 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 components.
public virtual SortableBuilder ConnectWith(string selector)
jQuery selector
Returns:Selector that determines the container boundaries in which hint movement will be constrained to.
public virtual SortableBuilder ContainerSelector(string selector)
jQuery selector
Returns:The CSS style which determines the cursor that will be shown while user drags sortable item. For example 'move', 'pointer', etc.
Configures the cursor offset of Sortable component.
public virtual SortableBuilder CursorOffset(Action<SortableCursorOffsetSettingsBuilder> cursorOffsetSettingsAction)
Cursor offset settings action.
Returns:Suppress initialization script rendering. Note that this options should be used in conjunction with WidgetFactory.DeferredScripts(bool)
The selector that determines which items are disabled. Disabled items cannot be dragged but are valid sort targets.
public virtual SortableBuilder Disabled(string selector)
jQuery selector
Returns:Sets the event configuration of the Sortable.
public SortableBuilder Events(Action<SortableEventBuilder> configurator)
The lambda which configures the events
Returns:The selector that determines which items are sortable. Filtered items cannot be dragged and are not valid sort targets.
public virtual SortableBuilder Filter(string selector)
jQuery selector
Returns:The selector to match the DOM element to which the Sortable component will be instantiated
public virtual SortableBuilder For(string selector)
jQuery selector
Returns:The selector that determines which element will be used as a draggable handler.
public virtual SortableBuilder Handler(string selector)
jQuery selector
Returns:HTML string representing the hint element
Sets JavaScript function which to return the hint for the sorted item.
public virtual SortableBuilder HintHandler(string handler)
JavaScript function name
Returns: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 selector which determines child elements for which the sort will not be initiated. Useful if the sortable item contains input elements.
public virtual SortableBuilder Ignore(string selector)
jQuery selector
Returns:HTML string representing the placeholder
public virtual SortableBuilder Placeholder(string content)
Html string
Returns:Sets JavaScript function which to return the placeholder for the sorted item.
public virtual SortableBuilder PlaceholderHandler(string handler)
JavaScript function name
Returns:Renders the component.
public virtual void Render()
public MvcHtmlString ToClientTemplate()
MvcHtmlString
Returns the internal view component.
Operators
public static implicit operator Sortable(SortableBuilder builder)