<?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 What event to handle when Selected Features are returned in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116395#M2913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Editor to do selections on a feature layer in ???MyMap??? control.&amp;nbsp;&amp;nbsp; There are a few other things that I want to do after the selected graphics have returned from the service.&amp;nbsp;&amp;nbsp; What is the best event/binding to handle when using the editor to notify me when the selected graphics have returned?&amp;nbsp; I have tried to use the Update Complete on the Feature Layer but that does not fire when mode is set to SelectionOnly.&amp;nbsp; I want to iterate through the graphics to generate a list of attributes.&amp;nbsp; I will be sending this list to query additional information for a database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 15:39:09 GMT</pubDate>
    <dc:creator>MikeKaufman</dc:creator>
    <dc:date>2010-05-18T15:39:09Z</dc:date>
    <item>
      <title>What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116395#M2913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Editor to do selections on a feature layer in ???MyMap??? control.&amp;nbsp;&amp;nbsp; There are a few other things that I want to do after the selected graphics have returned from the service.&amp;nbsp;&amp;nbsp; What is the best event/binding to handle when using the editor to notify me when the selected graphics have returned?&amp;nbsp; I have tried to use the Update Complete on the Feature Layer but that does not fire when mode is set to SelectionOnly.&amp;nbsp; I want to iterate through the graphics to generate a list of attributes.&amp;nbsp; I will be sending this list to query additional information for a database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 15:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116395#M2913</guid>
      <dc:creator>MikeKaufman</dc:creator>
      <dc:date>2010-05-18T15:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116396#M2914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the Editor's EditCompleted event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void MyEditor_EditCompleted(object sender, Editor.EditEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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.Select)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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 (Editor.Change item in e.Edits)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic graphic = item.Graphic; //selected graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Layer layer = item.Layer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 16:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116396#M2914</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-05-18T16:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116397#M2915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply...that event works perfect.&amp;nbsp; I didn't try EditComplated because I thought it would fire to soon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 21:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116397#M2915</guid>
      <dc:creator>MikeKaufman</dc:creator>
      <dc:date>2010-05-18T21:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116398#M2916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use the Editor's EditCompleted event. &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void MyEditor_EditCompleted(object sender, Editor.EditEventArgs e)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&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.Select)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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 (Editor.Change item in e.Edits)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic graphic = item.Graphic; //selected graphic&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Layer layer = item.Layer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I am expecting this event to fire when I hit Clear (when the ClearSelection Comand is called) but it seems that the event is not firing.&amp;nbsp; Has anyone ran into this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 20:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116398#M2916</guid>
      <dc:creator>MikeKaufman</dc:creator>
      <dc:date>2010-05-19T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116399#M2917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;EditCompleted event should be fired, the action you should be checking for is Editor.EditAction.ClearSelection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also use the layer's PropertyChanged event, when e.PropertyName is "SelectedGraphics" or "SelectionCount".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116399#M2917</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-05-20T14:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116400#M2918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The editCompleted does not fire for me on the clear command.&amp;nbsp; I have not tried the 2.0 RC api version yet.&amp;nbsp; But I think there might be a bug with that event not getting raised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;EditCompleted event should be fired, the action you should be checking for is Editor.EditAction.ClearSelection.&lt;BR /&gt;&lt;BR /&gt;You may also use the layer's PropertyChanged event, when e.PropertyName is "SelectedGraphics" or "SelectionCount".&lt;BR /&gt;&lt;BR /&gt;I hope that helps.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 19:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116400#M2918</guid>
      <dc:creator>MikeKaufman</dc:creator>
      <dc:date>2010-08-13T19:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: What event to handle when Selected Features are returned</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116401#M2919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using the EditorWidget or made a button with Command bound to the Editor's ClearSelection, the Editor's EditCompleted will fire when this command has successfully cleared selection. The Action you are looking for is ClearSelection. ArcGIS API for SL/WPF v2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not using this version, your best bet will be to listen to PropertyChanged event on the layer. The Property you are looking for is SelectionCount or SelectedGraphics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 22:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/what-event-to-handle-when-selected-features-are/m-p/116401#M2919</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-13T22:10:02Z</dc:date>
    </item>
  </channel>
</rss>

