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>
Hello,
Thank you for choosing Infragistics.
I have been looking into your issue and I have prepared a sample application for you to test. The Style's Key ("Style_XamNumericEditor"), that is defined in the code, that you have provided is different than the one that one you are using for the EditorStyle ("Style_XamTextEditor") in the UnboundField's Settings. Would you please provide me with more detailed information if the style, that you are defining is the one used for the UnboundField?
I would also ask you to test the sample for the behavior you have mentioned in your post and if the issue is not reproducible, would you please modify it according to the functionality you are using, so the issue is reproducible and send it back to me.
Finally, would you please provide me with more detailed information about the product version you are using? Having this information would help me further investigate this matter for you.
Looking forward to your reply.
I am just checking your progress on the issue that you are having.
If you require any further assistance, please do not hesitate to ask.
Hey your sample application helped. My code was missing DataType="{x:Type system:Double}".
<igDP:UnboundField DataType="{x:Type system:Double}"> this solved it! Thanks!