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).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RemoveDecimalZeros of CurrencyTextBox does not work correctly

Thread ID:





110352 Jul 31,2013 06:12 AM UTC Aug 5,2013 04:11 AM UTC WinForms 3
Tags: Tools
Asked On July 31, 2013 06:12 AM UTC


I am using Syncfusion Essential Studio with WinForm. I have a query about the RemoveDecimalZeros property of CurrencyTextBox control.

If my understanding is correct, RemoveDecimalZeros should remove all the trailing zeros after the decimal dot, but allow non-trailing zeros.

However, after set RemoveDecimalZeros =true I can not input text "1.103". Basically, if "0" is input right after the decimal dot ("."), it will be remembered and displayed when a non-zero digit has been input. For example, 1.003 can be entered, but CurrencyTextBox will only display "1" before I input the last "3". 

On the other hand, if "0" is input after decimal dot, but not right after the dot, it will be completely ignored. CurrencyTextBox seems to treat it as non-necessary zero and ignore the input. Therefore "1.103" will become "1.13".

Is this bug of CurrencyTextBox or my understanding about RemoveDecimalZeros is incorrect? How should I setup my CurrencyTextBox to remove all the trailing zeros but allow "1.103" kind of input?



Paul Anderson S [Syncfusion]
Replied On August 1, 2013 07:12 AM UTC

Hi Xinchao,

Thanks for your interest in syncfusion products.

In CurrencyTextBox when the RemovedecimalZeros is set to true after the decimal point it will not allow to type zero. When the property is true the behaviour is Zero should not be teh ending value . So when typing a zero it consider as a last digit and removes it. To achieve your requirement of typing 1.103, first enter 1.13 and then place the cursor in-betweeen '1' and '3' and then type '0'.

Please let us know if you have any concerns.

Paul Anderson S

Replied On August 2, 2013 07:20 AM UTC

Is this behavior changed/fixed in later versions? 

Paul Anderson S [Syncfusion]
Replied On August 5, 2013 04:11 AM UTC

Hi Xinchao,

Thanks for the update.

We would like to let you know that the reported behaviour with CurrencyTextBox "RemoveDecimalZeros" is the intended behaviour. We have the same behaviour in our later versions also.

Please let us know if you have any concerns.

Paul Anderson S


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