Opened 14 years ago

Closed 14 years ago

#6045 closed enhancement (fixed)

Refresh DnD Source and pickup new nodes

Reported by: Robert Coup Owned by: Eugene Lazutkin
Priority: high Milestone: 1.2
Component: DnD Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

Use case: A list/table that is a DnD source that has nodes dynamically added or removed (via .innerHTML, dojo.content(), or other DOM manipulations) which need to be dnd items.

You can do it via delItem() & setItem() but if your new content is marked up correctly its a bit of a PITA.

Current hack: "dndSource.clearItems(); dndSource.startup();" to pick up the changed nodes.

Idea: have a refreshItems() method that basically does the above.

I'm happy to add it if you think its a reasonable approach.

Change History (4)

comment:1 Changed 14 years ago by Robert Coup

Owner: changed from uhop to Eugene Lazutkin

comment:2 Changed 14 years ago by Eugene Lazutkin

Status: newassigned

comment:3 Changed 14 years ago by Eugene Lazutkin

(In [14154]) DnD: adding missing methods, adding synch() method to synchronize DOM nodes and the internal state of Container/Selector?. Refs #7045. Refs #5687. Refs #6045. !strict

comment:4 Changed 14 years ago by Eugene Lazutkin

Description: modified (diff)
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.