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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfNumericUpDown doesnt work using FormatString on UWP

Thread ID:

Created:

Updated:

Platform:

Replies:

129959 Apr 11,2017 09:21 PM UTC Apr 13,2017 04:15 AM UTC Xamarin.Forms 3
loading
Tags: SfNumericUpDown
Emil
Asked On April 11, 2017 09:21 PM UTC

I am tryin to use FormatString as cm, this code works fine on Android but It doesnt work on UWP. there are problems as
 1) after binding first time, it doesnt display cm suffix
 2) when I press up down buttons, numer disappears, only displays cm

  <Style x:Key="NumericStyle" TargetType="numeric:SfNumericUpDown">
                <Setter Property="HeightRequest" Value="60"/>
                <Setter Property="HorizontalOptions" Value="FillAndExpand"/>
                <Setter Property="VerticalOptions" Value="Start"/>
                <Setter Property="TextColor" Value="Black"/>
                <Setter Property="AllowNull" Value="true"/>
                <Setter Property="ParsingMode" Value="Decimal"/>
                <Setter Property="Maximum" Value="500"/>
                <Setter Property="FontSize" Value="10" />                
            </Style>

  <numeric:SfNumericUpDown MaximumDecimalDigits="2"   Style="{StaticResource NumericStyle}"  x:Name="heightNumericUpDown"
                                FormatString="cm"    Value="{Binding height}" />

Victory Jessie Selvam D [Syncfusion]
Replied On April 12, 2017 08:56 AM UTC

Hi Emil,

Thank you for using Syncfusion products.

For UWP, we suggest you to use standard format string "0.00" prior to the custom string "cm" for setting FormatString property and for other platforms you can simply use "cm". We have prepared a sample for the same and you can download it from the following link:

Sample: 129959-NumericUpDown-FormatString

Regards,
Jessie

Emil
Replied On April 12, 2017 04:15 PM UTC

This works thank you.

Victory Jessie Selvam D [Syncfusion]
Replied On April 13, 2017 04:15 AM UTC

Hi Emil,

Thank you for your update.

Please let us know if you require any further assistance.

Regards,
Jessie

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;