How to prevent some items in a list from moving while sorting
I am creating a web application where there are two kinds of objects
in a list: One is sortable and the other cannot be sorted by dragging
(using the cancel option). It is very similar to the example:
http://jqueryui.com/demos/sortable/#items
The second list in the example uses cancel to prevent sorting. The
behavior I want - when I click on a sortable item and drag it to a new
location - I only want the non-sortable items to move. I want the
sortable items to only move when a user decides to move it by
dragging.
I have not found a way to prevent movement of a sortable item. Any
help would be appreciated.
Thanks,
Walt