<?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: How to set some attributes readonly for FeatureDataForm? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-some-attributes-readonly-for/m-p/681227#M17523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your simplest option is to not retrieve the fields from the service in the first place, however that will also mean those fields won't show at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively you will have to create your own FeatureDataForm. It's really just a set of textblocks and textboxes in a grid that two-way binds straight to the attributes of a selected graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ie.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
&amp;lt;StackPanel x:Name="myForm"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Attributes["ObjectID"]" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;TextBox Text="{Binding Attributes["Name"], Mode=TwoWay}" /&amp;gt;
&amp;lt;/StackPanel&amp;gt;
...
private void ShowAttributes(Graphic g)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myForm.Visibility=Visibility.Visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myForm.DataContext = g;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:40:48 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2021-12-12T04:40:48Z</dc:date>
    <item>
      <title>How to set some attributes readonly for FeatureDataForm?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-some-attributes-readonly-for/m-p/681226#M17522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have silverlight 4/acrGIS API 2 application. I need to set some attributes readonly for FeatureDataForm. I have not found any place in feature service to implement it. Please help. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 16:05:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-some-attributes-readonly-for/m-p/681226#M17522</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2011-01-05T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to set some attributes readonly for FeatureDataForm?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-some-attributes-readonly-for/m-p/681227#M17523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your simplest option is to not retrieve the fields from the service in the first place, however that will also mean those fields won't show at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively you will have to create your own FeatureDataForm. It's really just a set of textblocks and textboxes in a grid that two-way binds straight to the attributes of a selected graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ie.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
&amp;lt;StackPanel x:Name="myForm"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Attributes["ObjectID"]" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;TextBox Text="{Binding Attributes["Name"], Mode=TwoWay}" /&amp;gt;
&amp;lt;/StackPanel&amp;gt;
...
private void ShowAttributes(Graphic g)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myForm.Visibility=Visibility.Visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myForm.DataContext = g;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:40:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-some-attributes-readonly-for/m-p/681227#M17523</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-12-12T04:40:48Z</dc:date>
    </item>
  </channel>
</rss>

