-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component is null in onDrop when dropped an item from Sortable #303
Comments
Please show us some of your code. Or even better - create a demo app! |
Let start with the code, maybe I am doing something wrong and you will see it immediately. Sortable:
And receiver:
|
It it not clear whether you use JQueryUI or KendoUI components. Looking at Line 130 in 2df5276
this.draggable , which is set at Line 183 in 337ef22
|
I'am using JQueryUI version. It does not call DraggableBehavior.newDroppableBehaviorVisitor at all. But I don't have DraggableBehavior on Sortable items. If I put it there, dropping works, but Sortable stops working. |
I have created a simple project: https://github.com/VaclavC/Test-SortNDrop It prints "component: null" on stdout. |
Well, the question to solve is how we can do it in pure jQuery UI? I spent some time trying to find relevant example, the closest I found is this one: Here is my code for the moment (it does not works very well but I think it is a progress)
|
The proposed solution is hardly usable in my real application. Sortable is in another panel hierarchy than the target and they don't now about themselves. I solved it by adding a separate Draggable into Sortable item for now. Then it works. |
I have a Sortable in my page, which works seamlessly. What I want is to be able to drag an item from Sortable and drop it on Draggable. I can do it, but I don't receive component object into my droppable, component is null then. When I try to add a DraggableBehavior to Sortable items, drag works, I receive a Component in onDrop method, but Sortable stops working.
Why I receive null instead of component when I drag something from Sortable to Droppable?
The text was updated successfully, but these errors were encountered: