This is a migrated thread and some comments may be shown as answers.

[Solved] Leading decimal seperator gets inserted after the first number entered.

1 Answer 33 Views
NumericBox for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Blake, Nicholas
Top achievements
Rank 1
Blake, Nicholas asked on 20 Nov 2014, 10:41 PM
I am noticing the following behavior using a NumericBox with the markup laid out below.
The box accepts positive decimals rounded to a single decimal place up to 9999.9

I am able to enter values less than one by entering the leading 0, such as 0.59 (which would then get rounded to 0.6)

However, if I try to enter ".59" the leading "." is not shown and appears to be ignored, until the 5 is pressed, at which point the entered number becomes "5."
The result is, if a user enters ".59" quickly, the entered value actual results as "5.9" which is definitely undesired behavior. It appears to be behavior native to the control itself. Is this a known issue, or considered an issue, of the NumericBox? Is there a workaround?

Thanks,
Nick

Markup:
<radinput:RadNumericBox
    Grid.Row="1"
    Height="38"
    MinWidth="70"
    Width="70"
    VerticalAlignment="Center"
    Minimum="0"
    Maximum="9999.9"
    AcceptsDecimalSeparator="True"
    ValueFormat="{}{0:N1}"
    ButtonsVisibility="Collapsed"
    AllowNullValue="True" />

1 Answer, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 25 Nov 2014, 10:12 AM
Hello Nick,

Thank you for this report.
Actually this is a bug in the RadNumericBox control. It is logged here, where you can track its status and vote for it. Unfortunately currently there is no workaround for it (aside from explicitly entering the leading 0).
Please note, that this issue is logged, will be fixed and released for the UI for Windows Universal suite and not in the "UI for Windows 8 XAML" suite, which is discontinued.

Your Telerik points are updated accordingly.

Regards,
Vladislav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
NumericBox for XAML
Asked by
Blake, Nicholas
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or