DatForm and floating point data

625
3
10-19-2011 12:26 AM
MaximSpikin
New Contributor II
Hi

I try to use FeatureDataForm to edit FeatureLayer.
Everything works fine (Geometry, string Fields, Data field edit and saved),
but if I edit an existing layer the data in floating point (type Double) - no data is saved.
As I understand, the problem is in the system regional settings - system decimal separator

ArcGIS 10, Silverlight API 2.2 (build 629), system decimal separator = ","

example: 
              72.1 => data is not saved and Commit button not enabled
              72,1 => data is stored as 721

if I change the system decimal separator on "." all OK, but I can not change the settings for all clients
How do I save floating point data?

Thanks
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
You can create TextBoxStyle and set Language property.

<Grid.Resources>
 <Style TargetType="TextBox" x:Key="tbDanishStyle">
  <Setter Property="Language" Value="da-DK" />
 </Style>
</Grid.Resources>
<!--more code goes here-->
<esri:FeatureDataForm x:Name="MyFeatureDataForm" TextBoxStyle="{StaticResource tbDanishStyle}" FeatureLayer="{Binding Path=Layers[PointLayer], ElementName=MyMap}" IsReadOnly="False" LabelPosition="Left" />
0 Kudos
MaximSpikin
New Contributor II
Thank you, Jennifer!
it works...
0 Kudos
danieldavis3
New Contributor
Can someone please define what "Floating Point Data" is and an example?
0 Kudos