# SortableEventBuilder

## Methods

### Start(System.String)

Defines the handler of the Start client-side event. Fires when sortable item drag starts.

For more information see [Start](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/start) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Start event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
            @(Html.Kendo().Sortable()
                        .For("#element")
                        .Events(events => events.Start("handler"))
            )
             
```

### Start(System.Func)

Defines the handler of the Start client-side event. Fires when sortable item drag starts.

For more information see [Start](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/start) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Sortable()
                       .For("#element")
                       .Events(events => events.Start(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
             )
             
```

### Move(System.String)

Defines the handler of the Move client-side event. Fires when Sortable's placeholder changes its position.

For more information see [Move](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/move) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Move event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
            @(Html.Kendo().Sortable()
                        .For("#element")
                        .Events(events => events.Move("handler"))
            )
             
```

### Move(System.Func)

Defines the handler of the Move client-side event. Fires when Sortable's placeholder changes its position.

For more information see [Move](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/move) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Sortable()
                       .For("#element")
                       .Events(events => events.Move(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
             )
             
```

### End(System.String)

Defines the handler of the End client-side event. Fires when item dragging ends but before the item's position is changed in the DOM. This event is suitable for preventing the sort action.

For more information see [End](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/end) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the End event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
            @(Html.Kendo().Sortable()
                        .For("#element")
                        .Events(events => events.End("handler"))
            )
             
```

### End(System.Func)

Defines the handler of the End client-side event. Fires when item dragging ends but before the item's position is changed in the DOM. This event is suitable for preventing the sort action.

For more information see [End](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/end) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Sortable()
                       .For("#element")
                       .Events(events => events.End(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
             )
             
```

### Change(System.String)

Defines the handler of the Change client-side event. Fires when item is sorted and the item's position is changed in the DOM.

For more information see [Change](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/change) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Change event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
            @(Html.Kendo().Sortable()
                        .For("#element")
                        .Events(events => events.Change("handler"))
            )
             
```

### Change(System.Func)

Defines the handler of the Change client-side event. Fires when item is sorted and the item's position is changed in the DOM.

For more information see [Change](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/change) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Sortable()
                       .For("#element")
                       .Events(events => events.Change(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
             )
             
```

### Navigate(System.String)

Defines the handler of the Navigate client-side event. Fired when navigatable is enabled and the user changes focus between enabled items or when swapping them using the keyboard navigation.

For more information see [Navigate](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/navigate) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Navigate event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

### Navigate(System.Func)

Defines the handler of the Navigate client-side event. Fired when navigatable is enabled and the user changes focus between enabled items or when swapping them using the keyboard navigation.

For more information see [Navigate](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/navigate) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

### Cancel(System.String)

Defines the handler of the Cancel client-side event. Fires when item sorting is canceled by pressing the Escape key.

For more information see [Cancel](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/cancel) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Cancel event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
            @(Html.Kendo().Sortable()
                        .For("#element")
                        .Events(events => events.Cancel("handler"))
            )
             
```

### Cancel(System.Func)

Defines the handler of the Cancel client-side event. Fires when item sorting is canceled by pressing the Escape key.

For more information see [Cancel](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/cancel) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

#### Example

```
 
             @(Html.Kendo().Sortable()
                       .For("#element")
                       .Events(events => events.Cancel(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
             )
             
```

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Sortable is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/kendokeydown) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the KendoKeydown event.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Sortable is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/sortable/events/kendokeydown) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [SortableEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/sortableeventbuilder) .
