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
5
votes
3 answers

Disabling copying in dojo.dnd

By default a dojo.dnd.Source container allows you to hold Ctrl to duplicate/copy a dragged item rather than just move it. I know you can set singular=true to stop multiple items being dragged but how do I stop copying? Duplicating items makes no…
voidstate
  • 7,937
  • 4
  • 40
  • 52
3
votes
1 answer

set id when using insertnodes in dojo

when using insertNodes a unique id will be created for the nodes. insertNodes(addSelected, data, before, anchor) How do we assign a certain name / text as an id for the new nodes?
wong chung yie
  • 175
  • 1
  • 4
  • 14
3
votes
3 answers

Eclipse 3.6 lag when copy and pasting

I'm having a strange problem with Eclipse 3.6 where copy and pasting causes a lot of lag (total eclipse lockup for 5-10 seconds). I'm using the Helios 3.6 PHP build but have also tried Galileo to no avail. On .php files editing PHP code, it is…
Paul
  • 41
  • 1
  • 3
3
votes
3 answers

Can we have nested targets in Dojo?

I have two divs nested under a parent div and I want all these to be source as well as targets for dojo.dnd. I want to be able to add nodes to the div over which the content was dropped and also allow the user to move this in between the 3…
Rohit
  • 53
  • 1
  • 7
2
votes
1 answer

dojo drag and drop: don't want new nodes appended

I have a user interface where some properties are represented as draggable items, and they can be dragged off a toolbar and dropped on some receiving item which is then updated. For this I'm using the Dojo Drag and Drop. I have some Dojo Dnd…
Chris Perkins
  • 799
  • 4
  • 8
2
votes
1 answer

dgrid dnd implement onDrop event

I would like to implement a custom behavior of the drop event of DnD in dgrid. I have the following gdrig declaration: this.grid = new (declare([OnDemandGrid, Editor, DnD, DijitRegistry]))({ region: "center", …
aRi_D
  • 25
  • 4
2
votes
1 answer

Dojo dnd input box

I'm trying to move the contents of an input box using Dojo DnD, so the HTML looks something like this:
And the JavaScript looks something like this: var dndSource = new…
Michael
  • 1,626
  • 11
  • 23
2
votes
1 answer

Can't select text in input box on IE

I have an input box that is inside of a div, the div has a background image and the input box inside of it is positioned and limited in size / font to work nicely with the background image. In FF everything works as expected, in IE though there is…
Michael
  • 1,626
  • 11
  • 23
2
votes
1 answer

Dnd avatar: how to get wysiwyg-preview on dragOver?

We've got a request from a customer to support the following scenario: on a page we have a container: div element which is at the same time dojo.dnd.Source. inside the container we've got 9 div elements with similar content: 2 buttons and 2…
1
vote
1 answer

Help with Dojo Drag & Drop

Hi I am trying to implement some drag and drop functionality into a project but am having a bit of difficulty with a few aspects. One of the problems I am having is with the creation of a custom avatar, I am able to achieve a custom avatar but have…
jonnyhitek
  • 1,521
  • 4
  • 17
  • 31
1
vote
2 answers

DGrid - Single Selection Mode while using Drag and Drop -> Results in multiple selections

I am trying to get a DGrid working using the following properties: Drag and Drop Single Selection Unfortionatly, this doesn't work quite as easily as I was hoping. I am declaring my DGrid like this: this._grid = new (declare([OnDemandGrid,…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
1
vote
1 answer

How to write a creator for dnd enabled dijit tree

I have a dijit tree that has dnd enabled via the dndController="dijit._tree.dndSource" option. Currently, when drag is initiated, the avatar content seems to be right aligned. The avatar is automatically picking the image and text content of item…
Fell
  • 755
  • 4
  • 11
  • 18
1
vote
3 answers

Dojo Drag-Drop Issue: Sorting items in target DND container

My JavaScript code is as below //I have a Json: var jsonRoles = {"roles": [ {"roleId": "1", "roleName": "role1", "roleDesc": "This is role1"}, {"roleId": "2", "roleName": "role2", "roleDesc":…
AbdulAziz
  • 5,868
  • 14
  • 56
  • 77
0
votes
1 answer

How to prevent dojo.dnd.moveable to make input fields disable

I use dojo.dnd.Moveable for making DIVs drag-able & drop-able in the page (Something like iGoogle). But the problem is after making them moveable, all of input fields (like text-boxes and list-boxes) will be disable and I can not write any thing in…
Goli
  • 1
0
votes
1 answer

Intern:Leadfoot - testing drag-n-drop

I have a webapp that uses dojo widgets and drag-n-drop functionalities and I'm using Intern in order to test it. Now I want to test the drag-n-drop mechanism, and for this I hoped to use the Leadfoot's helper, DragAndDrop.js As seen in the script's…
Bruno Bruzzano
  • 477
  • 7
  • 21
1
2