)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Does SfNumericUpDown supports other formats

Platform: Xamarin.Forms |
Control: SfNumericUpDown |
Published Date: April 28, 2017 |
Last Revised Date: July 5, 2019

Syncfusion NumericUpDown in Xamarin provides FormatString to denote the Numerical values in Currency, Percentage and Number format. By default, the numbers will be in Number Format. To change it as Currency or Percentage mode use the following procedure.

 

To set FormatString property follow the below given procedure:

 

Step 1: Create SfNumericUpDown and add assemblies to the program.

 

Step 2: Set FormatString as “p” or “P” to display the number Percentage format. Set FormatString as “c” or “C” to display the number in Currency format. Set FormatString as “n” or “N” to display the number in Normal numeric format.

 

The below code illustrates the way to achieve this.

 

Code Snippet

XAML Code

<StackLayout Padding="20">

<numeric:SfNumericUpDown x:Name="numericUpDown" FormatString="c" Value="5"/>

</StackLayout>

 

Image for FormatString = “c”:

SfNumericUpDown Currency Format

 

Image for FormatString = “p”:

SfNumericUpDown Percentage Format

 

 

Image for FormatString = “n”:

SfNumericUpDown Normal Numeric Format

 

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon