Login Register

drag and drop

Drag & Drop from dijit.Tree into dojo.dnd.Source (ordered list).

I have been playing around with Dojo's drag and drop functionalities lately to familiarize myself with the toolkit (v1.1.1).

One problem that I haven't been able to get just right is to make dragging items from a tree (copyOnly: true) into a dojo.dnd.Source which is an oredered list.
When I drop one of the tree items into the list, dojo appends a <div> element instead of creating a <li> element.

Drag n Drop elements with Tooltips on them

I'm busy making a drag'n'drop interface, from a source list of items to a destination list. On the items i also put a dijit.Tooltip. This works in the sourcelist, but once i dragged and dropped the item, the tooltip is gone. I'm using dojo 1.1.1. Any idea's?

Regards,

Edwin Eversdijk

  • My article (15 Sept 2008)
  • DND Accept All?

    I want to restrict then number of items in a dnd target to 8. To do this, I've added the line:

    if (reslength==8) target.accept="";

    This works fine, but how do I then allow items to be dropped again once reslength has been reduced. Basically, how to I set target.accept back to the default value? I've read that this is ["text"], but obviously this stops the target from accepting anything with a dndType other than "text". I want the target to accept ALL items when reslength < 8.

    Thanks in advance.

    Moving Tree nodes both horizontally and vertically

    I need a tree widget that lets me drag and drop nodes both within the same parent node (ordering), and to a different parent node (moving).

    Example:

    • Fruit
      • Apple
      • Orange
      • Tomato
    • Vegetable
      • Lettuce
      • Carrot

    Drag and Drop Tabs - Are they possible?

    Hi,

    I've been trying to implement drag and drop tabs but have had no success.

    I have managed to set the TabContainer as a Source and apply the dojoDndItem class to each tab but this has no effect. I've implemented drag and drop many times before and had no problems so why doesn't it work for the TabContainer?

    Is it possible to have drag and drop tabs?

    In my initial investigation I was only aiming to move the tabs and not their associated content. My intention is to move the content once the tabs themselves are dnd enabled.

    Here is my code:

    Slow performance for table row Drag and Drop?

    I am implementing drag and drop in a table, using it to re-order table rows.

    However, I have noticed that performance is very slow, relative to the number of rows. If I have 200 or so rows, there is a significant delay from when the drag mousedown occurs to when the avatar appears.

    Has anyone hit this as well?
    Are there any suggested improvements?

    Thanks.

    DRag and Drop slows down

    hi

    I am using the DnD from dojo i have notices as i create more draggable items on the page the DnD slows dows considerably am i doin something wrong ?

    Thanks

    Dino

    Drag and drop the content within table cells.

    I have a large table (40 columns, > 100 rows), and I need people to be able to drag the values from one cell and place (append) them in another.

    Here is what I have so far.

    <table>
    ...
    <td id='td-01-01' dojoType='dojo.dnd.Source'><div class='dojoDndItem'>foo</div></td>
    ...
    </table>

    Each td is a dnd source, and contains 1 or more divs which are dnd items.

    Tree widget: when a parent node becomes a child node of its son

    Using Dnd feature in tree, you can experience what happens if you drag a parent node and drop it on any of its child nodes:
    the parent node and the child node suddenly disappears from the view!

    here is what happens in dijit/tests/tree/test_Tree_DnD.html:
    treePic.jpg

    The explanation simply is we just created an isolated subtree:

    Adding an item at a specified place in DnD src

    Hi

    I am trying to create a Dnd list in which buttons are there as Dnd items, now what i want to do is suppose there are 3 dnd items say 1, 2, 3 now i want to select the 2nd Dnd item and add a new item on the fly between 2 and 3 rd dnd item

    Rite now if i add a new item it just adds it after the last available one say 3 in this case, can we specify where in the list to add a dnd item ??

    dino

    Syndicate content