# Items

The Sortable provides options for controlling the behavior of its items.

## Disabling Items

To make items non-sortable, disable them by providing a selector that matches these items. As a result, the user will not be able to drag the disabled non-sortable items, or to change their position. However, they will still be valid sort targets.

```Razor HtmlHelper
	@(Html.Kendo().Sortable()
    	.For("#sortable-basic")
    	.Disable(".disable")
	)
```

## Filtering Items

To prevent items both from being dragged and being sort targets, specify a filter.

```Razor HtmlHelper
	@(Html.Kendo().Sortable()
    	.For("#sortable-basic")
    	.Filter(".sortable")
	)
```

## Dragging Items within Containers

By default, the Sortable uses the mouse cursor to determine the place of the drop placeholder. This means that if the mouse cursor is not over a sortable item, the placeholder will not be re-positioned.

If the axis is set to `x` or `y`, the Sortable will start operating in an axis movement mode and will use only the `x` or `y` coordinate of the mouse cursor to determine the position of the placeholder. The axis mode is useful when dragging is restricted in a container.

## Dragging Items between Lists

To enable the dragging of items between two lists, create a Sortable for each list and use the `ConnectWith` configuration in both Sortable components.

```Razor HtmlHelper
    @(Html.Kendo().Sortable()
        .For("#sortable-listA")
        .ConnectWith("#sortable-listB")
        .PlaceholderHandler("placeholder")
    )

    @(Html.Kendo().Sortable()
        .For("#sortable-listB")
        .ConnectWith("#sortable-listA")
        .PlaceholderHandler("placeholder")
    )

    <script>
        function placeholder(element) {
            return $("<li class='list-item' id='placeholder'>Drop Here!</li>");
        }
    </script>
```

## See Also

* [Disabling and Filtering Items in the Sortable HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/sortable/filter-disable)
* [Dragging Items within Containers by the Sortable HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/sortable/sortable-panels)
* [Dragging Items between Lists in the Sortable HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/sortable/linkedlists)
* [Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/sortable)
