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
close icon

SFNumericTextBox integer databinding

Hi,

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,

114687_NumericTextBox.zip 


Please let us know if you need further assistance.

Regards,
Vignesh V


Loader.
Live Chat Icon For mobile
Up arrow icon