Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
xamNumericEditor converts 0.00001 to scientific notation 1e-05. What mask value needs to be put here so that the validation passes?
posted

When I enter 0.00001 it gives an error saying "Value '1E-05' is not a valid value. Please enter a valid value" I need validation for ###.###### (optional negative)

So. 3 digits before zero and 6 digits after decimal.

Bound property in c# is nullable double.

<Style x:Key="Style_XamNumericEditor" TargetType="{x:Type igEditors:XamNumericEditor}">
<Setter Property="Mask" Value="{}{double:-3.6}" />
<Setter Property="HorizontalContentAlignment" Value="Right"/>
</Style>

<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout >
<igDP:FieldLayout.Fields>
<igDP:UnboundField>
<igDP:UnboundField.Settings>
<igDP:FieldSettings
LabelTextAlignment="Right"
EditorStyle="{StaticResource Style_XamTextEditor}" />
</igDP:UnboundField.Settings>
</igDP:UnboundField>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>