Hi, is it possible to disable the selection on a mxgraph? I've tried the following with no luck:

    mxGraphComponent graphComponent = new mxGraphComponent(graph);

        graphComponent.setDragEnabled(false);
        graphComponent.setConnectable(false);

asked 11 Feb '13, 10:22

Luke%20Zammit's gravatar image

Luke Zammit
33
accept rate: 0%

edited 11 Feb '13, 10:23


mxGraph.setCellsSelectable(false)

link

answered 12 Feb '13, 02:39

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

Thank you! :)

(12 Feb '13, 13:11) Luke Zammit
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:

×228
×37
×13
×6

Asked: 11 Feb '13, 10:22

Seen: 1,444 times

Last updated: 12 Feb '13, 13:11