when we drag & drop the vertex on the edge which is connected b/w two vertices ,it can connects b/w the two vertices. for example v1 -----> v2. when we drag & drop the third vertex v3 on the edge it will be connected.

v1----->v3----->v2... how to resolve this...I m used (mxgraph)editor in my web app.Thanks in advance

asked 19 Feb '13, 07:53

santosh's gravatar image

santosh
312
accept rate: 66%


hi,i got solun for it. graph.getDropTarget(cells,evt,cell)

link

answered 23 Feb '13, 03:30

santosh's gravatar image

santosh
312
accept rate: 66%

Try this:

graph.splitEnabled = false;
link

answered 19 Feb '13, 11:59

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

if graph.splitEnabled = false; ,how can we drop the vertex on the edge.its not working.

(20 Feb '13, 01:51) santosh

Can you rephrase the original question, I don't understand what you want.

(20 Feb '13, 03:02) Gaudenz

i want to add a vertex while drag &drop on the edge which is already connected b/w the two vertices. ex: v1 ----> v2 i want to add like this : v1 --->v3---->v2 ,v3 will be added b/w the v1 & v2 when v3 drag & drop on the edge

(20 Feb '13, 03:53) santosh

i have tested isSplitEnabled() ,it returns true. first time drag & drop the vertex on the editor .from the editor second time drag & drop the vertex on the edge which connected two vertices ,then its working as shown above ...but i am looking for the first time when drag & drop the vertex on the edge it will be connected..how ?

(20 Feb '13, 06:23) santosh

I don't understand this, either.

(20 Feb '13, 06:24) David

If your use is commercial, please contact commercial support for more help.

(20 Feb '13, 06:33) David

i have v1---->v2 in the editor...I want to insert antoher vertex v3 b/w them. like v1--->v3--->v2 when drag & drop the v3 on the edge.

(20 Feb '13, 07:03) santosh
showing 5 of 7 show all
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:

×37

Asked: 19 Feb '13, 07:53

Seen: 1,241 times

Last updated: 26 Feb '13, 05:56