If MaximumNumberDecimalDigits change you can type double comma

I add an SFNumericTextBox with the following settings (CustomNumeric is just an abstraction with no modify, so is a SFNumericTextBox in fact):

            CustomNumeric entry = new CustomNumeric

            {

                HorizontalOptions = LayoutOptions.CenterAndExpand,

                VerticalOptions = LayoutOptions.CenterAndExpand,

                WidthRequest = 250d,

                IsEnabled = true,

                MaximumNumberDecimalDigits = item.Type == EnumType.Integer ? 0 : 6,

                TextAlignment = TextAlignment.Center

            };


When I deploy my app, the control allow me to enter some commas until 3 when the app crush. Can you give me a solution for this?


Thanks in advance


2 Replies

LR Lolo Rodri September 24, 2021 09:17 AM UTC

Just to add information, I tried it in English culture and Spanish culture and only happens in the English one.

Also happens without changing MaximumNumberDecimalDigits.



ET Eswaran Thirugnanasambandam Syncfusion Team September 24, 2021 12:54 PM UTC

Hi Lolo Rodri, 
 
Greetings from Syncfusion. 
 
We have prepared the sample using the provided code snippet and checked the reported crash in both Spanish and English culture with our latest NuGet (19.2.0.62). But we are unable to reproduce the reported crash from our side. The SfNumericTextBox control accepts only one decimal separator when we try to add it more than once. 
 
Please find the prepared sample and tested video demo from the below link. 
 
 
Please check the sample and video. If you still face any problem, can you revert us by modifying the sample based on your scenario or provide stack trace information of the reported crash, this will help us to provide you a better solution at the earliest. 
 
Regards, 
Eswaran. 


Loader.
Up arrow icon