<?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 FeatureLayerSelection - adding display selected features attributes panel in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759225#M19373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I like the sample below for selecting features. I altered the sample so that I can choose between the different SelectionModes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, how do I display the attributes of the selected features like in the Spatial Query sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first sample doesn't trigger a QueryCompleted event and the second sample uses the event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 17:22:17 GMT</pubDate>
    <dc:creator>BrianPangtay</dc:creator>
    <dc:date>2010-09-27T17:22:17Z</dc:date>
    <item>
      <title>FeatureLayerSelection - adding display selected features attributes panel</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759225#M19373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I like the sample below for selecting features. I altered the sample so that I can choose between the different SelectionModes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, how do I display the attributes of the selected features like in the Spatial Query sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first sample doesn't trigger a QueryCompleted event and the second sample uses the event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 17:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759225#M19373</guid>
      <dc:creator>BrianPangtay</dc:creator>
      <dc:date>2010-09-27T17:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayerSelection - adding display selected features attributes panel</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759226#M19374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the SpatialQuery example, the query task is created and executed after MyDrawSurface_DrawComplete. If you would like to do the same in the LayerSelection example, you will need to tap into the Editor's EditCompleted event. You also may want to use FeatureDataGrid using featureLayer.SelectedGraphics as its FilterSource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 public MainPage()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; InitializeComponent();
&amp;nbsp;&amp;nbsp; Editor editor = this.LayoutRoot.Resources["MyEditor"] as Editor;
&amp;nbsp;&amp;nbsp; if (editor!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; editor.EditCompleted += new EventHandler&amp;lt;Editor.EditEventArgs&amp;gt;(editor_EditCompleted);

&amp;nbsp; }

&amp;nbsp; void editor_EditCompleted(object sender, Editor.EditEventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; if (e.Action == Editor.EditAction.Select)
&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; if (edit.Layer is FeatureLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer featureLayer = edit.Layer as FeatureLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //TODO: display featureLayer.SelectedGraphics in a grid.
&amp;nbsp;&amp;nbsp;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759226#M19374</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T08:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayerSelection - adding display selected features attributes panel</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759227#M19375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't you just use the FeatureDataGrid and bind it to the layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 18:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayerselection-adding-display-selected/m-p/759227#M19375</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-27T18:26:36Z</dc:date>
    </item>
  </channel>
</rss>

