<?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: Spatial Query inside TemplatePicker_EditCompleted in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-inside-templatepicker-editcompleted/m-p/212956#M5332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you seen this SDK sample? &lt;/SPAN&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;SPAN&gt;. This seems more appropriate for what you are trying to achieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TemplatePicker will add graphics to your FeatureLayer. You might want to use a GraphicsLayer to hold this temporary graphic instead (as shown in the sample).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TemplatePicker has a ShowAttributesOnAdd property that you can set to False, this will disable the FeatureDataForm popup after completion of add. If you want to cancel the add, FeatureLayer must be AutoSave=False (it is true by default). You can then call UndoEdits() on TemplatePicker.EditCompleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would still suggest you look at the SDK sample and use GraphicsLayer instead of FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 14:29:39 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-11-03T14:29:39Z</dc:date>
    <item>
      <title>Spatial Query inside TemplatePicker_EditCompleted</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-inside-templatepicker-editcompleted/m-p/212955#M5331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;im using template picker for creating a feature, im doing in the TemplatePicker_EditCompleted&amp;nbsp; a sptial query and based on the result of the spatial query, i want to clear all edits made and dispose the attributes form that popups when drawing is completed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i ask the template picker to cancel edits done and dispose the FeatureDataForm, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for any help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 08:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-inside-templatepicker-editcompleted/m-p/212955#M5331</guid>
      <dc:creator>NoureddineEl-zaatari</dc:creator>
      <dc:date>2011-11-03T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Query inside TemplatePicker_EditCompleted</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-inside-templatepicker-editcompleted/m-p/212956#M5332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you seen this SDK sample? &lt;/SPAN&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;SPAN&gt;. This seems more appropriate for what you are trying to achieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TemplatePicker will add graphics to your FeatureLayer. You might want to use a GraphicsLayer to hold this temporary graphic instead (as shown in the sample).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TemplatePicker has a ShowAttributesOnAdd property that you can set to False, this will disable the FeatureDataForm popup after completion of add. If you want to cancel the add, FeatureLayer must be AutoSave=False (it is true by default). You can then call UndoEdits() on TemplatePicker.EditCompleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would still suggest you look at the SDK sample and use GraphicsLayer instead of FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 14:29:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/spatial-query-inside-templatepicker-editcompleted/m-p/212956#M5332</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-11-03T14:29:39Z</dc:date>
    </item>
  </channel>
</rss>

