Skip to main content

Search and Top Navigation

#7590 open feature ()

Opened August 01, 2011 02:43PM UTC

Last modified March 13, 2013 02:31AM UTC

Sortable: Allow the connectWith option to be updated in a start callback

Reported by: itsmemario Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.8.14
Keywords: Cc:
Blocked by: Blocking:
Description

Hi, i have two connected sortable lists.

One element (the element "1.3" in the example) should not be able to drag to the other list.

So i disabled the connectwith option in the start-callback for this element

sortable("option", "connectWith", false)

but i still can drag the element to the second list.

Example: http://jsbin.com/afehod

Attachments (0)
Change History (7)

Changed August 01, 2011 02:52PM UTC by scottgonzalez comment:1

type: bugenhancement

That's not a supported use case and we're not making functionality changes for interactions right now. We'll address this in the API redesign for sortable.

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:2

type: enhancementfeature

Changed October 10, 2012 07:13PM UTC by scottgonzalez comment:3

#8630 is a duplicate of this ticket.

Changed October 11, 2012 02:55PM UTC by scottgonzalez comment:4

milestone: 1.9.02.0.0

Changed October 11, 2012 05:52PM UTC by marventus.wp comment:5

_comment0: Hi itsmemario. I am the author of ticket #8630. I didn't find your ticket before posting mine. I just wanted to tell you that I managed to get it working with a click function. Sure, it's not ideal or very "clean", but it does the trick. You can check out the working example I posted in that thread. \ Good luck to you!1349978109069244

Hi itsmemario. I am the author of ticket #8630. I didn't find your ticket before posting mine. I just wanted to tell you that I managed to get it working with a click function outside of the sortable functionality. Sure, it's not ideal or very "clean", but it does the trick. You can check out a working example in the above ticket.

Good luck to you!

Changed November 05, 2012 12:38PM UTC by jzaefferer comment:6

status: newopen

Consider for redesign.

Changed March 13, 2013 02:31AM UTC by tj.vantoll comment:7

summary: Sortable - disable the connectWith option in the start-callbackSortable: Allow the connectWith option to be updated in a start callback