Login Register

dnd

how to save store after user DnD-Tree-action

I had posted this on the mailing list, but Dustin recommnded to post here on the forum, so here it is:

I am experimenting with a DnD enabled dijit Tree and
ItemFileWriteStore. After a user has done some DnD action I want the
store automatically to save(). What is the recommended way to do that
? Any event I can connect to, which only fires after successful Tree
DnD ?

I tried (with 95% success) overwriting the Tree onDndDrop function
with the following snippet:


onDndDrop: function(source, nodes, copy, destination) {
this.inherited(arguments);

[solved] DND breaks on insertNodes - (simple case code included)

Hi. I've been struggling through this for weeks - Have refactored a dozen different ways, but nothing works. SO, I've created a simple case scenario based on SitePen's DND example that shows the error clearly. I've also compiled all of the other forum posts where people have had the same problem (I haven't seen a resolution yet).

The case:
* Programatically build a DND source.
* Replace the contents of that source with new DND items
* Click and drag for the new items dies on *just the first* click and drag. FF ignores the error. IE dies completely.

Dojo.DnD dndItem absolute position

Hello, I am new in Dojo and I get problem in positioning dnd item in dnd target after I copy it from source and drop it.
I want to be able to use absolute position and to see dropped item remained on same place where I drop it and not horizontally or vertically aligned.

Any help will be welcomed.

Thanks in advance,

Vadim

Programattic inlineEditBox causes DND error.

Hi. I'm adding an inline edit box programatically and it all works fine... until i try to drag the node in which the edit box exists. Error on drag is:

[Exception... "'Error: Tried to register widget with id==favorites_title_136 but that id is already registered' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "" data: no]

here's the code for adding the inlineEditBox

var titleDiv = document.createElement("div");
dojo.addClass(titleDiv, "objTitle");

dojo.dnd.Source object always accepts from self, regardless of accept parameter

I'm attempting to create a form where a user can drag items from [List A] into [List B], from [List B] into [List A] and re-order items in [List B]. However, I do not want the user to be able to re-order items in [List A]; effectively, I don't want [List A] to accept items from itself.

DnD - Horizontal alignment?

I have the simple dnd example working as in: http://www.dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-...

I'd like to know how I make the items in the source and target boxes align horizontally rather than vertically, I'm not sure if this is a CSS or dojo issue.

I've tried fixing the .bluesquare and .redsquare width to 50px (rather than 100%) and I have expended the width of the Target div, but I'm having no luck.

TIA.

How do I remove the number 1 in an draggable item...

Hi,

how do I get rid of the number 1 always showing when I drag an item?
I already tried to build my own creator function, but still this number is showing...

Any ideas?

Help!!! DND across iframes :)

Hi @all,

I am a DOJO newbie and can't solve a problem I am currently facing.
On my Website I have an Iframe with draggable elements. It is no problem to initialize the main table object as a dojo.dnd.Source Object. But when I try to drag the -Elements the dojo.dnd.Manager has no nodes to clone:
(this dojo line of code fails: node = this.manager.nodes[i].cloneNode(true); )
How do I tell the manager to listen to dojoDndItem in an Iframe?

Here is the source code of the parent frame: (initDragAndDrop() is called by the IFrame onLoad event)

dojo.require("dojo.dnd.Source");

Problem in drag&drop (dnd) for nested sources in gridcontainer at runtime.

Hi, I am trying to do the drag&drop (dnd) for nested sources at runtime.

But i am not able to do it.

If any one can help me in this it will be a great help.

Regards,

JJ

Problem in dnd for nested sources using gridcontainer at run time

Hi, I am trying to do the drag&drop (dnd) for nested sources at runtime.

But i am not able to do it.

If any one can help me in this it will be a great help.

Regards,

JJ

Syndicate content