On Mon, Feb 23, 2009 at 1:42 AM, Alex <[email protected]> wrote:

>
> Is there a way to constrain sortable so that if I have 2 lists and the
> user drags one item to the connected list, that the sole item in the
> connected list is returned to the first list and only allowing the new
> item to reside in the new list?
>
> Example:
> User wants to drag "Item 1 to the connected list.  Item 4 should be
> returned to the list bucket.


I think what you need is a kind of drop basket, so a droppable would be
good, rather than a connected sortable list. Just make the current
connected list a drop target, and in the drop callback, append the
current dragged item into the droppable and remove the original.


>
>
> Connected List:
> +--------------------------------+
> |           Item 4              |
> +--------------------------------+
>
> List bucket:
>
> +--------------------------------+
> |           Item 1              |
> +--------------------------------+
> |           Item 2              |
> +--------------------------------+
> |           Item 3              |
> +--------------------------------+
> |           Item 5              |
> +--------------------------------+
>
> >
>


-- 
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to