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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Start event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Move event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the End event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Change event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Navigate event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Cancel event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of SortableEventBuilder .
Example
@(Html.Kendo().Sortable()
.For("#element")
.Events(events => events.Cancel(
@<text>
function(e) {
//event handling code
}
</text>
))
)