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

SfNumericUpDown shows two % symbols on iOS when FormatString="p" is used

SfNumericUpDown on iOS shows two % symbols initially when FormatString="p" is used. MaximumDecimalDigits="0" is also not working on iOS, it displays values with two decimal points. I want to display integer values (no decimal points). The following is my code:


MainPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:NumericUpDown"
              xmlns:numeric="clr-namespace:Syncfusion.SfNumericUpDown.XForms;assembly=Syncfusion.SfNumericUpDown.XForms"
             x:Class="NumericUpDown.MainPage">

  <numeric:SfNumericUpDown HeightRequest="50" WidthRequest="60" VerticalOptions="Center" SpinButtonAlignment="Both" Value="{Binding percentageCompleted,Mode=TwoWay}" TextAlignment="Center" FormatString="p" Minimum="0" Maximum="100" StepValue="1" TextColor="Black" MaximumDecimalDigits="0" PercentDisplayMode="Value" >
  </numeric:SfNumericUpDown>

</ContentPage>

MainPage.xaml.cs

using Xamarin.Forms;

namespace NumericUpDown
{
    public partial class MainPage : ContentPage
    {
        public double PercentageCompleted;

        public double percentageCompleted
        {
            get
            {
                return PercentageCompleted;
            }
            set
            {
                PercentageCompleted = value;
                OnPropertyChanged(nameof(percentageCompleted));
            }
        }

        public MainPage()
        {
            InitializeComponent();
            BindingContext = this;
             percentageCompleted= 0;
        }
    }
}


Please provide me a sample resolving my issue. iOS screenshot has been attached.

Product Version I am using : 15.1451.0.41

Attachment: Screenshot_3b0f1b1c.zip

1 Reply

VA Vanaja  Annasamy Syncfusion Team April 20, 2017 12:18 PM UTC

Hi Sreeenesh,

Query: "MaximumDecimalDigit does not set to zero and getting "%" symbol twice initially, while using binding in SfNumericUpDown in Xamarin.Forms.iOS. "

We have created support incident to track the status of the reported issue has been created under your account.

Please log on to our support website to check for further updates.

Link: https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/  

Regards,
Vanaja R.A.



Loader.
Live Chat Icon For mobile
Up arrow icon