SortableEventBuilder
Defines the fluent API for configuring the Kendo UI Sortable for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SortableEventBuilder : EventBuilder
Inheritance: objectEventBuilderSortableEventBuilder
Inherited Members
Constructors
Initializes a new instance of the SortableEventBuilder class.
public SortableEventBuilder(IDictionary<string, object> events)
The Sortable event handlers.
Methods
Defines the handler of the Cancel client-side event. Fires when item sorting is canceled by pressing the Escape key.
public SortableEventBuilder Cancel(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Cancel client-side event. Fires when item sorting is canceled by pressing the Escape key.
public SortableEventBuilder Cancel(string handler)
The name of the JavaScript function that will handle the Cancel event.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Change client-side event. Fires when item is sorted and the item's position is changed in the DOM.
public SortableEventBuilder Change(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Change client-side event. Fires when item is sorted and the item's position is changed in the DOM.
public SortableEventBuilder Change(string handler)
The name of the JavaScript function that will handle the Change event.
Returns:Returns the current instance of SortableEventBuilder .
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.
public SortableEventBuilder End(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
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.
public SortableEventBuilder End(string handler)
The name of the JavaScript function that will handle the End event.
Returns:Returns the current instance of SortableEventBuilder .
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.
public SortableEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
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.
public SortableEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Move client-side event. Fires when Sortable's placeholder changes its position.
public SortableEventBuilder Move(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Move client-side event. Fires when Sortable's placeholder changes its position.
public SortableEventBuilder Move(string handler)
The name of the JavaScript function that will handle the Move event.
Returns:Returns the current instance of SortableEventBuilder .
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.
public SortableEventBuilder Navigate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
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.
public SortableEventBuilder Navigate(string handler)
The name of the JavaScript function that will handle the Navigate event.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Start client-side event. Fires when sortable item drag starts.
public SortableEventBuilder Start(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of SortableEventBuilder .
Defines the handler of the Start client-side event. Fires when sortable item drag starts.
public SortableEventBuilder Start(string handler)
The name of the JavaScript function that will handle the Start event.
Returns:Returns the current instance of SortableEventBuilder .