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

SFNumericTextBox integer databinding


I was wondering how to force a SfNumericTextBox to be integer type.

I have to bind an integer property to a SfNumericTextBox but I always have exceptions when I enter a decimal with the keyboard.

The user should not be able to enter any decimal numbers within it so that I can keep the constraint into my property.

Thanks, Rafi

1 Reply

VV Vignesh V Syncfusion Team October 22, 2013 06:17 AM UTC

Hi Rafi,

We have prepared a sample that tries to meet your requirement 'Restricting decimal digits in NumericTextBox and to enter only integer values'. In the sample we have set 'MaximumNumberDecimalDigits' property to zero and NumberFormat's NumberDecimalDigits to zero.

Please find the sample in below link,


Please let us know if you need further assistance.

Vignesh V

Live Chat Icon For mobile
Up arrow icon