<?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: Editor buttons not enabled in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608009#M15617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you plan on adding layers dynamically and need all GraphicsLayers and FeatureLayers from your Map.Layers to use the same Editor, it is sufficient to supply only Editor.Map property. If you wish to include or exclude some layers, you can also supply the Editor.LayerIds property. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually in the sample link you provided.. if you are using WPF, setting Editor.Map property through Element binding is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;esri:Editor x:Key="MyEditor" Map="{Binding ElementName=MyMap}" LayerIDs="CensusDemographics" SelectionMode="Rectangle" ContinuousMode="True" /&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to set this property in code-behind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Editor editor = this.LayoutRoot.Resources["MyEditor"] as Editor;
editor.Map = this.MyMap;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can still use LayerIDs property if you wish to include only specific layers from your map. When you create the layer in code-behind, you just need to set ID property to match this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
FeatureLayer l = new FeatureLayer()
{
 ID = "CensusDemographics",
 Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0"
};
MyMap.Layers.Add(l);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:41:28 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-12T16:41:28Z</dc:date>
    <item>
      <title>Editor buttons not enabled</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608007#M15615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have copied the code from the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection"&gt;Feature Layer Selection&lt;/A&gt;&lt;SPAN&gt; example.&amp;nbsp; None of the buttons become enabled, no matter what I try.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've changed the URLs to point to services on my server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My services use Active Directory authentication so I am adding the layers to the map in code behind so I can set the layer Credentials = CredentialCache.DefaultCredentials.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that, my code is identical to the sample.&amp;nbsp; Do I have to enable something on my arcgis server?&amp;nbsp; Will the editor not work if I add the layers in code-behind, or if they use AD Authentication?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608007#M15615</guid>
      <dc:creator>AndrewWhite</dc:creator>
      <dc:date>2011-02-23T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Editor buttons not enabled</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608008#M15616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I answered my own question...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're adding your layers to the map in code-behind, you have to add your Editor after you add your layers.&amp;nbsp; I'm guessing my problem occurred because I was setting my Editor.LayerIDs to a layer that didn't exist on the map yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 15:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608008#M15616</guid>
      <dc:creator>AndrewWhite</dc:creator>
      <dc:date>2011-02-23T15:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Editor buttons not enabled</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608009#M15617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you plan on adding layers dynamically and need all GraphicsLayers and FeatureLayers from your Map.Layers to use the same Editor, it is sufficient to supply only Editor.Map property. If you wish to include or exclude some layers, you can also supply the Editor.LayerIds property. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually in the sample link you provided.. if you are using WPF, setting Editor.Map property through Element binding is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;esri:Editor x:Key="MyEditor" Map="{Binding ElementName=MyMap}" LayerIDs="CensusDemographics" SelectionMode="Rectangle" ContinuousMode="True" /&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to set this property in code-behind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Editor editor = this.LayoutRoot.Resources["MyEditor"] as Editor;
editor.Map = this.MyMap;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can still use LayerIDs property if you wish to include only specific layers from your map. When you create the layer in code-behind, you just need to set ID property to match this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
FeatureLayer l = new FeatureLayer()
{
 ID = "CensusDemographics",
 Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0"
};
MyMap.Layers.Add(l);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608009#M15617</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T16:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Editor buttons not enabled</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608010#M15618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 18:13:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editor-buttons-not-enabled/m-p/608010#M15618</guid>
      <dc:creator>AndrewWhite</dc:creator>
      <dc:date>2011-02-23T18:13:31Z</dc:date>
    </item>
  </channel>
</rss>

