Select to view content in your preferred language

Problem with editor.select

700
2
08-17-2010 04:07 AM
Jukka-PekkaSuontaus
New Contributor
Hi!

I'm currently working with editor's selection and I have founded two problems:

1) When the editors drawmode is set to polygon and user draws area that contains no features in it, the editor stops working (despite it is set on continousmode). Same behaviour can be seen e.g. in samples http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection.

2) When map has two (or more) featurelayers, editor is set to polygon drawmode and the command is Editor.Select("New"), new selection clears previous selections only from one of the featurelayers.

Have anyone noticed the same problems? Is there any workaround?
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
1) When the editors drawmode is set to polygon and user draws area that contains no features in it, the editor stops working (despite it is set on continousmode). Same behaviour can be seen e.g. in samples http://help.arcgis.com/en/webapi/sil...LayerSelection.


This seems to happen when layer is SelectionOnly mode. If you try this other sample, selecting on an area without feature does not end "Add to selection." http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave

2) When map has two (or more) featurelayers, editor is set to polygon drawmode and the command is Editor.Select("New"), new selection clears previous selections only from one of the featurelayers.


I am not able to replicate this. The Editor you are using here has set its LayerIDs property to include all the feature layers?

I will look into both of these and let you know what I find. Thank you for your post.
0 Kudos
JenniferNery
Esri Regular Contributor
I was able to replicate both issues and we marked them as defect. I will be working on getting these two fixed in future release.

For #1 - this seem to only happen when the SelectionMode for the layer is SelectionOnly.
For #2 - this seem to happen when the new selection does not include any feature from the other layers.

For the meantime, you can use the EditorWidget, this seem to not have the two bugs that you mentioned, or you can iterate through graphics of each layer and ensure that when graphic.Selected is true, mark graphic.Selected to false before performing new selection.
0 Kudos