We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

App Crash with SfNumericUpDown & SfNumericTextBox using decimal delimiter other than a dot.

Xamarin.Forms PCL Project and android app with API Level 23.
Essential studio for Xamarin V15.3.0.26.
OS Culture has a decimal delimiter other than ".", e.g. ",".
Release build of an app (Debug build seems to work fine).

App crashes on control initialization:
FragmentContainer.java 
java.lang.NumberFormatException

Invalid double: "0,00"

1 java.lang.StringToReal.invalidReal StringToReal.java:63
2 java.lang.StringToReal.initialParse StringToReal.java:164
3 java.lang.StringToReal.parseDouble StringToReal.java:282
4 java.lang.Double.parseDouble Double.java:301
5 md5270abb39e60627f0f200893b490a1ade.FragmentContainer.n_onCreateView FragmentContainer.java
6 md5270abb39e60627f0f200893b490a1ade.FragmentContainer.onCreateView FragmentContainer.java:51
7 android.support.v4.app.Fragment.performCreateView Fragment.java:2192
8 android.support.v4.app.FragmentManagerImpl.moveToState FragmentManager.java:1299
9 android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState FragmentManager.java:1528
10 android.support.v4.app.FragmentManagerImpl.moveToState FragmentManager.java:1595
11 android.support.v4.app.BackStackRecord.executeOps BackStackRecord.java:758
12 android.support.v4.app.FragmentManagerImpl.executeOps FragmentManager.java:2363
13 android.support.v4.app.FragmentManagerImpl.executeOpsTogether FragmentManager.java:2149
14 android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps FragmentManager.java:2103
15 android.support.v4.app.FragmentManagerImpl.execPendingActions FragmentManager.java:2013
16 android.support.v4.app.FragmentManagerImpl$1.run FragmentManager.java:710
17 android.os.Handler.handleCallback Handler.java:739
18 android.os.Handler.dispatchMessage Handler.java:95
19 android.os.Looper.loop Looper.java:135
20 android.app.ActivityThread.main ActivityThread.java:5294
21 java.lang.reflect.Method.invoke Method.java
22 java.lang.reflect.Method.invoke Method.java:372
23 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:904
24 com.android.internal.os.ZygoteInit.main ZygoteInit.java:699

XAML fragment:
 <xForms1:SfNumericTextBox
 x:Name="DurationHoursEntry"
IsEnabled="{Binding Editable}"
Value="{Binding DurationHours}"
TextAlignment="Center" 
MaximumNumberDecimalDigits="0"
AllowNull="True" />

7 Replies

SK Selva Kumar  Veerakrishnan Syncfusion Team August 9, 2017 02:06 PM UTC

Hi Victor,

We have considered the issue "App Crash with SfNumericUpDown & SfNumericTextBox using decimal delimiter other than a dot" as bug and the support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.


Regards,
Selva Kumar V.



PE Perten August 23, 2017 05:57 AM UTC

Hi,

I'm having the exact same problem, is there a fix for this yet ?

Thx.



RO ronak August 23, 2017 09:35 AM UTC

  var ab = Int32.Parse(Math.Floor(Convert.ToDouble(quanupdown.Value)).ToString());


     cartdbmodel.quantity = ab;


quanupdown is my numericupdown   


this will solve your problem surely





SK Selva Kumar  Veerakrishnan Syncfusion Team August 24, 2017 04:46 AM UTC

Hi Raivo,

We have considered the issue "App Crash with SfNumericTextBox using decimal delimiter other than a dot" as bug and the support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Selva Kumar V.


SK Selva Kumar  Veerakrishnan Syncfusion Team August 24, 2017 12:32 PM UTC

Hi Ronak,


Thank you for your update.


The provided solution "Converting double value to int will remove the decimal points. So, It could affect the value accuracy. We have logged defect report for te issue "App Crash with SfNumericTextBox using decimal delimiter other than a dot" that will be fixed and included in Volume 3 SP1 which is expected to be rolled out by end of August.


Regards,
Selva Kumar V. 



EM Emil January 26, 2018 05:35 PM UTC

Is that serious or a joke ? how can converting double to integer a solution when you need a double. have language set up different than english for example.


Phone Language: German  
SfNumericTextBox Culture: German

It only works when 

Phone Language: English
SfNumericTextBox Culture: German

how can you expect people to use English language settings?


SK Selva Kumar  Veerakrishnan Syncfusion Team January 29, 2018 12:58 PM UTC


Hi Emil,

We could reproduce the issue "When entering Decimal delimiter other than dot the application get crash". Fix for this will be included in our upcoming 2018 Volume 1 release, which is expected to be rolled out by the mid of February.

Regards,
Selva Kumar V.

Loader.
Live Chat Icon For mobile
Up arrow icon