<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Undo edits of the EditorWidget in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674736#M17370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the editor widget is a cool control to easy add new features and fill in the attributes. So we want to use this control. Our requirement to fulfill is to check the new feature after drawing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new graphic must be checked if it intersects with a certain other shape. We created a webservice for this functionality. So the check is no problem. But if the check say "editing on this place is not allowed" I would like to cancel the edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I implemented logic in the EditorWidget.Edit_Completed and FeatureLayer_BeginEditing event handlers. These handlers do have a input parameter EditAction. In both event handlers I set the EditAction to "Cancel". But still my features are drawn and saved to the geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I cancel the edit operation of the EditorWidget? Why does the Editor-class has an "undo" and the EditorWidget doesn't?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 08:20:19 GMT</pubDate>
    <dc:creator>MannusEtten</dc:creator>
    <dc:date>2010-08-05T08:20:19Z</dc:date>
    <item>
      <title>Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674736#M17370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the editor widget is a cool control to easy add new features and fill in the attributes. So we want to use this control. Our requirement to fulfill is to check the new feature after drawing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new graphic must be checked if it intersects with a certain other shape. We created a webservice for this functionality. So the check is no problem. But if the check say "editing on this place is not allowed" I would like to cancel the edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I implemented logic in the EditorWidget.Edit_Completed and FeatureLayer_BeginEditing event handlers. These handlers do have a input parameter EditAction. In both event handlers I set the EditAction to "Cancel". But still my features are drawn and saved to the geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I cancel the edit operation of the EditorWidget? Why does the Editor-class has an "undo" and the EditorWidget doesn't?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 08:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674736#M17370</guid>
      <dc:creator>MannusEtten</dc:creator>
      <dc:date>2010-08-05T08:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674737#M17371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We also liked the edit widget--it is a great control but we found similar limitations on controling the events/actions fired when clicking a tool.&amp;nbsp; Our solution was creating our own tool menu by building custom buttons to replicate the same functionality as the widget (tapping in to the editor class).&amp;nbsp; This allowed us to have more control over what each button does and would be a method to resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul Leedham&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City of Hudson&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.hudson.oh.us/"&gt;http://gis.hudson.oh.us/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 13:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674737#M17371</guid>
      <dc:creator>PaulLeedham</dc:creator>
      <dc:date>2010-08-05T13:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674738#M17372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set the layer's AutoSave property to false. Get the Editors from the EditorWidget's and TemplatePicker's DataContext. Note that these two editors are separate, you can get the TemplatePicker using Expression Blend "Edit Template" on EditorWidget. When you have both editors, you can listen to their EditCompleted event, perform the necessary checks for the graphics and call the save here. Kindly see the code below for guide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public MainPage()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Editor editorForWidget = this.MyEditorWidget.DataContext as Editor;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(editorForWidget != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editorForWidget.EditCompleted += new EventHandler&amp;lt;Editor.EditEventArgs&amp;gt;(editorForWidget_EditCompleted);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void editorForWidget_EditCompleted(object sender, Editor.EditEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var edits in e.Edits)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Action // check action (EditVertices, Reshape, Cut, Select,..)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; edits.Graphic // perform the check for graphic
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // if check succeeds, save the edits
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (edits.Layer is FeatureLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (edits.Layer as FeatureLayer).SaveEdits();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:27:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674738#M17372</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T04:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674739#M17373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I implemented the code given by ESRI Inc. Now I can detect and determine when to use SaveEdits for a featurelayer. But if I don't call this method, still the features are saved to the geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So again? How can I undo an edit in a decent way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My own implementation removed the feature after it was added...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Editor editor = editorWidget1.DataContext as Editor;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (editor != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor.EditCompleted += new EventHandler&amp;lt;Editor.EditEventArgs&amp;gt;(editor_EditCompleted);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void editor_EditCompleted(object sender, Editor.EditEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var edit in e.Edits)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(e.Action== Editor.EditAction.Save)
//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer featurerLayer = edit.Layer as FeatureLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (featurerLayer != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (IsEditAllowed(edit.Graphic, featurerLayer.ID))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featurerLayer.SaveEdits();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featurerLayer.Update();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private bool IsEditAllowed(Graphic graphic, string layerName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return layerName.Equals("punten");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the xaml-code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:EditorWidget HorizontalAlignment="Left" Margin="391,298,0,0" Name="editorWidget1" VerticalAlignment="Top" Height="162" Width="302" AutoComplete="True" AutoSelect="True" Continuous="False" Freehand="True" GeometryServiceUrl="http://localhost/ArcGIS/rest/services/Geometry/GeometryServer"&amp;nbsp; Map="{Binding ElementName=Map}" ShowAttributesOnAdd="True" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map x:Name="Map" Background="White" Margin="-32,-45,32,45"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer ID="BaseLayer" Url="http://localhost:80/arcgis/rest/services/DBK/MapServer" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="punten" Url="http://localhost/ArcGIS/rest/services/DBK/FeatureServer/0" OutFields="POST" AutoSave="False"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="lijnen" Url="http://localhost/ArcGIS/rest/services/DBK/FeatureServer/1" OutFields="POST" AutoSave="False"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674739#M17373</guid>
      <dc:creator>MannusEtten</dc:creator>
      <dc:date>2021-12-12T04:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674740#M17374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;The new graphic must be checked if it intersects with a certain other shape. We created a webservice for this functionality. So the check is no problem. But if the check say "editing on this place is not allowed" I would like to cancel the edit.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you perform this check prior to calling SaveEdits? If the issue is with adding new graphics, I assume you use the TemplatePicker within the EditorWidget. You need to get this from EditorWidgetStyle (use Expression Blend "EditTemplate"). Get the Editors from their DataContext and on the EditCompleted event, check that when an Add occurs or EditVertices occurs, they intersect the shape (as you mentioned in your requirements), if the new graphic fails this test, do not call SaveEdits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 14:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674740#M17374</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-06T14:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674741#M17375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use the editorWidget. Because this is the most easy to implement control for editing. Our customer can see which kind of feature he will add. The editing tools for edit vertices are handy too. Apparently this control is contains two controls. A TemplatePicker and something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I took the editor from the datacontext of the editorwidget. Apparently this is the wrong datacontext. Can you give me a code sample how to grab the correct editor?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I connect now an event to the datacontext of the editorwidget. Is this editor in use for the toolbar which is shown by the EditorWidget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I have known this without your help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 07:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674741#M17375</guid>
      <dc:creator>MannusEtten</dc:creator>
      <dc:date>2010-08-09T07:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674742#M17376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Editor from the EditorWidget, acts on the toolbar. The EditorWidget contains a TemplatePicker. If you have Expression Blend, you can see what UIElements are contained in the widget by adding an EditorWidget to an empty SL application, right-click on the widget and "Edit Template". You will find that just as in this example, the buttons contained in the widget are made active through an Editor:&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 13:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674742#M17376</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-09T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674743#M17377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not completely understand your reply. I dont have blend in use so maybe that is the reason. But if I take your first reply with the datacontext I get apparently the wrong one. So this EditorWidget has two datacontexts in use?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 08:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674743#M17377</guid>
      <dc:creator>MannusEtten</dc:creator>
      <dc:date>2010-08-10T08:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674744#M17378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The DataContext you retrieved from the EditorWidget is correct too. This is the Editor that acts on the toolbar so if you wish to check that EditGeometry/Select/Cut/Reshape/Union were performed, you will use the Editor from the widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other sets of Editors come from the TemplatePicker. You can use this if you wish to monitor the Add. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attached XAML code was produced by Expression Blend. You can apply this style to your EditorWidget, it is the DefaultStyle - I only added handler for TemplatePicker's Loaded event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code-behind you can do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 private void TemplatePicker_Loaded(object sender, RoutedEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TemplatePicker picker = sender as TemplatePicker;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var t in picker.Templates)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.Editor.EditCompleted += new EventHandler&amp;lt;Editor.EditEventArgs&amp;gt;(Editor_EditCompleted);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the same event handler as the Editor from the widget so all are checked in one place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry if I was unclear with my previous posts. I thought you had ExpressionBlend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674744#M17378</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T04:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674745#M17379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will add this style to my xaml-file without the markup such a colors. Only the part with the buttons, tooltips and the template picker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I can control now the adds and do the saveedits only when I want that to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides this, what happens if I add an editor to the staticresources and use this for the datacontext of my editorWidget?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 13:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674745#M17379</guid>
      <dc:creator>MannusEtten</dc:creator>
      <dc:date>2010-08-11T13:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674746#M17380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The EditorWidget sets its own datacontext with an internal editor based on the properties you provide like Map, GeometryServiceUrl, Continuous, Layers, etc.. some of which are properties of the Editor as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set just the EditorWidget's datacontext to the editor, all of their common properties will get their default value. The widget does not check if its datacontext has been set to an editor and populate its properties based on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you would like an Editor defined as StaticResource, instead of setting EditorWidget's datacontext.. you can do GeometryServiceUrl={Binding Source={StaticResource MyEditor}, Path=GeometryServiceUrl}. In this case, you still need to grab the internal editor the EditorWidget created for itself to subscribe to its events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 13:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674746#M17380</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-11T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674747#M17381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the solution now. I installed the trial edition of Blend too. I can update the layer when the edit is invalid so there are no edits. But in every case (valid/unvalid edit) the attribute-window will pop up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the property "showattributeonadd" is set to false. How can I control this window?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 12:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674747#M17381</guid>
      <dc:creator>MannusEtten</dc:creator>
      <dc:date>2010-08-12T12:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Undo edits of the EditorWidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674748#M17382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm glad you have Blend now. It really helps play around with controls. You can customize any of ESRI toolkit here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ShowAttributesOnAdd property when true will show a FeatureDataForm to display the attributes when you add a feature (EditAction is Add). Since you need to check if the add/edit is valid before actually adding the graphic, it will be best to set this property to false. If you wish to display the attributes on a successful add (one that you have marked as valid add), you can do your own call to display FeatureDataForm - this way you have more control of when this window is shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 14:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/undo-edits-of-the-editorwidget/m-p/674748#M17382</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-12T14:22:33Z</dc:date>
    </item>
  </channel>
</rss>

