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).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback

Binding Issue

Thread ID:





124910 Jul 8,2016 11:52 AM UTC Jul 11,2016 11:58 AM UTC Xamarin.Forms 1
Tags: SfNumericTextBox
Asked On July 8, 2016 11:52 AM UTC

Hello !
I created a XAML page and a corresponding ViewModel.
But the value stay at 0.
Here's my code

<numeric:SfNumericTextBox Grid.Column="1"
                                Value="{Binding NombrePlace, Mode=TwoWay, Converter={StaticResource StringToInteger}}"
                                Watermark="Nombre de place"

View Model :

public int NombrePlace
            get { return _nombrePlace; }
            set { _nombrePlace = value; }
        private int _nombrePlace;

Any one know where did i made a mistake ?
Thanks ! :)

Pavendhan Kumar [Syncfusion]
Replied On July 11, 2016 11:58 AM UTC

Hi Yasahbi,

From the provided code example, we infer that you are trying to set Null value to the NumericTextBox and binding it to the int type property so it shows 0 initially. If your requirement is to display null textbox at the startup, then the property has to be nullable field. We have created a sample to display null element initially. Please download the sample from the below mentioned link.

Link: http: //www.syncfusion.com/downloads/support/forum/124910/ze/NumericTextBoxBinding-1052995621

If your requirement is different from the above, please provide us more information or modify the sample to reproduce your reported problem. It will be convenient for us to assist you further.

Pavendhan K


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.

Please sign in to access our forum

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

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