Yup, that is why I suggested in making AutoSave to false and just explicitly call SaveEdits() http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html when the geometry change seem correct 😛This should give you a chance to undo or cancel the changes in the Editor's EditCompleted event.
If you want to accept the change in geometry caused by Cut/Reshape/Union/EditVertices, you can explicitly call SaveEdits(). Otherwise to revert back to the old geometry, the only way is to call FeatureLayer.Update().Another option is to use v2.1 RTM. Like I said in my previous post, CancelActive command will also cancel edits made by EditVertices command if it were the active command and the changes were not yet commited. However, Cut/Reshape/Union does not cancel their edit with CancelActive command even with v2.1 RTM. The reason is because, the GeometryService call performs this change instantaneously; unlike EditVertices where you have to click back on the feature to finalize the edit. For this case, I would advise to do the first approach.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.