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

How to remove whitespaces in the number input


I want to change the default functionality of SfNumericTextBox which inserts whitespaces after focusing out in the number input.

How can I achieve that?


3 Replies

SP Sureshkumar P Syncfusion Team December 14, 2022 11:30 AM UTC

Hi John,

Based on your shared information, you want to add space character instead of group separator to the value. But the group separator is the default functionality of numbering format. So we cannot change the default behavior of the component and update your exact scenario to achieve your requirement with space character instead of group separator. Based on your update will validate and update exact solution as earlier as possible.


Sureshkumar P

JJ John Johnson December 16, 2022 08:54 AM UTC


no, I don't want any space character or group separator inside of SfNumericTextBox. 

I want 12 332 131 to look like 12332131.

SP Sureshkumar P Syncfusion Team December 19, 2022 11:10 AM UTC

John, you can achieve your requirement by using our masked textbox component. To know more about the maskedtextbox component refer to the below online demo and documentation.

Online demo: https://blazor.syncfusion.com/demos/numeric-textbox/default-functionalities?theme=fluent

Documentation: https://blazor.syncfusion.com/documentation/numeric-textbox/getting-started

Live Chat Icon For mobile
Up arrow icon