Hi there,

you could do that easily by using the items option in sortables as a
callback.
That means, your items option per list would look like this:

items: function(e, ui) {

    if(ui.item is not a child of 'this' && 'this' has more than 10 children)
{
       $(this).sortable('disable');
    } else {
       $(this).sortable('enable');
    }

}

replace the ghibberish wording with actual functions (jQuery selectors or
something) that
match what the wording expresses.

Also, there might be a possibility that this is not working sufficiently,
because the list
is disabled only after you start the drag. Anyway, give it a try!

Cheers,
Paul

On Sat, Nov 15, 2008 at 1:57 AM, Shedokan <[EMAIL PROTECTED]> wrote:

>
> I have a couple of sortable lists which I want to limit the number of
> Items in each.
> so I thought there might be a way to dinamically not allow more than
> one Item in a list.
> Myabe someone knows how to do this or maybe something else.
> thanks in advance.
> >
>


-- 
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