Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2965
Assigning value to UltraCalculatorDropDown
posted

I am having difficulties assigning values to the UltraCalculatorDropDown.

Firstly, set your region to one that has comma as the decimal separator.

Then set calculator.Value = 123M

This sets the value in the calculator text box, and when you click the down arrow you see the same value in the calculator.

Now set calculator.Value = 234.00M (note the zeros)

This correctly sets the value in the calculator text box, but when you click the down arrow, it has reset to 0.

The only way I can get this to parse the value correctly is setting AutoDetectDecimalSymbol = false and DecimalSymbol = ".".  However, this then means the calculator displays in the wrong format for the locale.

Am I missing something, or is this a bug?

Parents Reply Children
No Data