using DevExtreme.MVC.Demos.Models.SampleData;
using DevExtreme.MVC.Demos.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace DevExtreme.MVC.Demos.Controllers {
public class SortableController : Controller {
public ActionResult Customization() {
return View(SampleData.EmployeeTasks.Where(task => task.Task_Parent_ID != 0));
}
}
}
dropFeedbackMode
Specifies how to highlight the item's drop position.
itemOrientation
Notifies the Sortable about item layout so that it can properly re-position items or the drop indicator during drag and drop.
dragDirection
Specifies the directions in which an item can be dragged.
scrollSpeed
Specifies the scrolling speed when dragging an item beyond the viewport.
scrollSensivity
Specifies the distance in pixels from the edge of viewport at which scrolling should start.
The value should not be more than half the Sortable's height or width depending on items' orientation.
handle
Specifies an element that should act as a drag handle for an item. A CSS selector (id or class) is used to reference the element. If not specified, users can drag any part of the item.
dragTemplate
Specifies custom markup to be shown instead of the item being dragged.