<?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 Re: Programatically selecting querytask results in FeatureLayer. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192884#M4789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set IsSelected property for each graphic returned by the QueryTask. Note that for SelectionOnly mode, you need to add each selected graphic to the layer and save edits before the selected features are added to the server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 14:05:54 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-09-21T14:05:54Z</dc:date>
    <item>
      <title>Programatically selecting querytask results in FeatureLayer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192883#M4788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was wondering if there was a way to run a QueryTask and then programatically select the results of that task in a feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't been able to programatically select any features in a featurelayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 01:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192883#M4788</guid>
      <dc:creator>KevinSchumm</dc:creator>
      <dc:date>2010-09-21T01:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically selecting querytask results in FeatureLayer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192884#M4789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set IsSelected property for each graphic returned by the QueryTask. Note that for SelectionOnly mode, you need to add each selected graphic to the layer and save edits before the selected features are added to the server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 14:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192884#M4789</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-09-21T14:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically selecting querytask results in FeatureLayer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192885#M4790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response Jennifer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I'm approaching this wrong. Let me explain the situation and see what your thoughts are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a featurelayer on my map that is showing points. I present the user with a search window that allows them to search for a feature in that layer based on some attributes. I am using a QueryTask to get the features from the server that match those attributes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now have a FeatureSet that I'm displaying to the user in a datagrid. I want the user to be be able to click that row, have the map pan/zoom to that feature in the featurelayer that is already turned on, and also programmatically select that feature for the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried setting "selected" to true on the graphics that return from the QueryTask, but this doesn't seem to tie back to the graphics in the FeatureLayer already displaying on the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 14:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192885#M4790</guid>
      <dc:creator>KevinSchumm</dc:creator>
      <dc:date>2010-09-21T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically selecting querytask results in FeatureLayer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192886#M4791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using the FeatureDataGrid?&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid&lt;/A&gt;&lt;SPAN&gt; The FeatureDataGrid has FilterSource property which is an IEnumerable&amp;lt;Graphic&amp;gt;. You can set this with the QueryTask results. You can also set AutoZoomToSelected to achieve what you want to happen on row selection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 15:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programatically-selecting-querytask-results-in/m-p/192886#M4791</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-09-21T15:38:06Z</dc:date>
    </item>
  </channel>
</rss>

