Articles in this section
Category / Section

How to restrict the decimal values in SfNumericTextBox?

1 min read

In SfNumericTextBox, you can restrict the decimal values by using MaximumNumberDecimalDigits property.

XAML

 <syncfusion:SfNumericTextBox x:Name="numericbox" MaximumNumberDecimalDigits="0" HorizontalAlignment="Center"  Width="300" VerticalAlignment="Center"/>

C#

numericbox.MaximumNumberDecimalDigits = 0;

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied