Questions tagged [dojo-dnd]

For issues relating to the dojo/dnd Dojo package for basic user interface concepts of “drag and drop”.

dojo/dnd is a package providing the basic user interface concepts of “drag and drop” where a user interface element is clicked, dragged and then dropped in another location.

27 questions
0
votes
0 answers

dojo drag and drop how to drop to absolute position?

I am trying to drag a div onto a target. When dropping the item I want to position it on the target at the position it was dropped. I need to use dojo dnd. The problem i am having is finding the position where I have dropped the item so that I can…
Westy10101
  • 861
  • 2
  • 12
  • 25
0
votes
2 answers

Use Dojo Drag and Drop together with Dojo Moveable

I'm using Dojo.dnd to transfer items between to areas. The problem is: the items will snap into place once I drop them, but I'd like to have them stay where I drop them, but only for one area. Here's a little code to explain this better:
Select0r
  • 12,234
  • 11
  • 45
  • 68
0
votes
1 answer

Dojo DGrid- how do I add in a button to a column's label?

My goal is create a dGrid where each column has a label and a button right next to the label called comments. Only if the slot_header != "", else we hide the column all together. I have the hiding working when I pass it "". It's just when I do pass…
0
votes
1 answer

How to detect dragging of source item in dojo?

We are using dojo dnd package for drag and drop purpose. There is class Moveable which can be used for the moving node element and the code looks like as below var dropSource = new Moveable(DIV_ID); and Moving item can be tracked with following…
Pradeep
  • 6,303
  • 9
  • 36
  • 60
0
votes
3 answers

how to get/set an acceptance of a dojo.dnd.source

I need to call a function that changes the dnd.source acceptance previously created. Any idea to how to change an existent dojo.dnd.source would be greatful. Code I used to create: var catalog = new dojo.dnd.Source( 'div_catalog', { accept:…
Rafael
  • 1
  • 4
0
votes
0 answers

What is dojo equivalent of jquery droppable?

Jquery Droppable syntax is as below, $('some_id').droppable(options); Jquery draggable can be achieved with Dojo Movable - Link Any hints for droppable ?
Pradeep
  • 6,303
  • 9
  • 36
  • 60
0
votes
1 answer

What is dojo equivalent of jquery draggable

I am new to dojo, My jquery draggable function looks like as below, $(function() { $( "#draggable" ).draggable(); }); In dojo, Can we use dojo/dnd or dojox/floatingpane to achieve same results as above. In this example of dojo dnd, we deal…
Pradeep
  • 6,303
  • 9
  • 36
  • 60
0
votes
0 answers

dojo/dnd/autoscroll: how to hamper the squirrel-like autoscroll speed

I'm using dnd on a 120px tall dgrid and it's nearly impossible to hit my drop target. The default auto-scroll feature is too fast for this small grid. Is there a way to set an acceleration value or correlate the scroll speed with the closeness to…
Corey Alix
  • 2,694
  • 2
  • 27
  • 38
0
votes
2 answers

How to add an image to an item in a dojo/dnd/Source

I've create a dnd solution, with a source and target location. Right now the drag is bi-directional, I would like to have it be one-direction target to source. Then from the source add a image to each item (a delete icon), so that the users can…
naaronne
  • 13
  • 3
0
votes
1 answer

How to remove / delete an item from a Dojo Drag and Drop Source?

I have the below Dojo DnD and I can't figure out how to delete and add item(s) from/to the catalog source. What I ultimately want to do is allow the users to is: Drag items from the catalog to the wishlist... this is working fine. Delete any…
Karl
  • 149
  • 3
  • 14
0
votes
2 answers

Dojo dnd (drag and drop) 1.7.2 - How to maintain a separate (non-dojo-dnd) list?

I'm using Dojo dnd version 1.7.2 and it's generally working really well. I'm happy. My app maintains many arrays of items, and as the user drags and drops items around, I need to ensure that my arrays are updated to reflect the contents the user is…
Harold
  • 1,584
  • 1
  • 12
  • 20
0
votes
1 answer

I change some text inside draggable node, then i drag this node in another container and the old value is back

I have a dojo.dnd container (UL tag). inside of it i have an tag (in LI tag), i change the value of this INPUT in browser and then i drag this LI to another container. After dropping i see the old value in my INPUT field. Could you help me not to…
Igor
  • 556
  • 3
  • 19
1
2