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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

130065 Apr 19,2017 12:33 PM UTC Apr 20,2017 12:18 PM UTC Xamarin.Forms 1
loading
Tags: SfNumericUpDown
Sreeenesh
Asked On April 19, 2017 12:33 PM UTC

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

Vanaja  Annasamy [Syncfusion]
Replied On 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.



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

;