Select to view content in your preferred language

Cancel Edition when using ContinuousMode

578
3
10-21-2010 05:20 AM
FrancoisChartrand
Emerging Contributor
Hi,

I'm using the Editor on a GraphicsLayer with the ContinuousMode set to true. All the graphics present in the GraphicsLayer are drawn using a method similar to this sample. When the EditVertices command is executed (parameter null), any graphic that will be clicked will switch to edition (which is fine).

However, while editing vertices of a graphic, if I press the CancelActive button and then click on another graphic again, to EditVertices command seems to be still active because the clicked graphic will switch to edition even if the CancelActive command has been executed.

Is it the expected behaviour? What is the proper way to cancel the EditVertices command when using the ContinuousMode?

Note that I wasn't able to reproduce this behaviour with a FeatureLayer.

I can provide my sample application if required.

Thank you
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
Thank you for your post, I was able to replicate it using our SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave

This is a bug, because if you choose Select command while Continuouse Mode is on and then Cancel, you are not able to Select again until you activate Select. We will try to get it fixed in the future release.

Thanks!
0 Kudos
FrancoisChartrand
Emerging Contributor
Do you know if this bug has been fixed in the latest version (i.e. version 2.1 build 446)?
0 Kudos
JenniferNery
Esri Regular Contributor
Yes this bug had been fixed for v2.1 Final. The current SDK sample is run against v2.1 Final (see link below) no longer reproduce this error.

To replicate:
Use http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave
Check Continuous Action
Click Edit Vertices
Click on graphic to begin editing
Click Cancel Action
Click on any graphic to begin editing again // EditVertices should not be active at this point.
0 Kudos