Hi! I have some child vertex into other vertex, and I want to disable the posibility of moving the inner vertex outside of its parent. Now, when I drag the child vertex out of its parent, it is "disconnected", but I don't want to allow it.

\n

Do you know how can I do it?

asked 20 Jul '11, 10:28

eferrante's gravatar image

eferrante
2116
accept rate: 0%


Hy! Apologize for the inconvenience.

\n

I found the answer in the forum: http://forum.jgraph.com/questions/12/how-to-avoid-drag-and-drop-of-an-specific-mxcell

\n

And in another site with has been very useful for me: http://www.vainolo.com/2011/04/11/another-day-with-jgraph-styles-and-constrained-children/

link

answered 20 Jul '11, 10:58

eferrante's gravatar image

eferrante
2116
accept rate: 0%

Please Set the status of RemoveCellsFromParent as false.

\n
graphComponent.getGraphHandler().setRemoveCellsFromParent(false);\n
link

answered 10 Jan '12, 19:19

Saju%20Chithran's gravatar image

Saju Chithran
11916
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79
×9
×5

Asked: 20 Jul '11, 10:28

Seen: 2,905 times

Last updated: 10 Jan '12, 19:19