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

Does SfNumericUpDown supports other formats

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.

 

XAML Code:

<StackLayout Padding="20">

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

</StackLayout>

 

Image for FormatString = “c”:

 

Image for FormatString = “p”:

 

 

Image for FormatString = “n”:

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7690 04/28/2017 04/28/2017 Xamarin.Forms SfNumericUpDown
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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