Reputation: 54103
What is the simplest way to integrate drag and drop functionality?
I will have, for example a list of cases, and a list of employees and I will need to assign a case to one or more employees (among other things).
It looks complicated to do this type of task.
Is there a library or something that simplifies this?
How is it normally implemented?
Upvotes: 0
Views: 2001
Reputation: 50728
Yes, use JQuery and JQuery UI, which has a draggable plugin and droppable plugin to configure this. There is nothing inherently built-in to ASP.NET.
To enable dragging, it's as simple as $( "#draggable" ).draggable();
, where the #draggable is the ID of the element to drag. You can also customize the options for when dragging can be enabled, etc.
Upvotes: 1