DecimalTextBox and NumericTextBox BUG, help-me

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
Enter a value in decimaltextbox and numerictext box, after you save and reload the page again and add 4 zeros at the end by changing the value, price necessary to inform the decimal and can not accept the field, how to fix it?

Ex: after typing 1540 and save and reloaded in the field value 15400000
14 years ago
What page(s) are you talking about (product editing, tax editing)?
14 years ago
all pages that use this field to date

ProductVariantDetails.aspx
CurrencyDetails.aspx

thanks for reply!
14 years ago
try to change this on DecimalTextBox.ascx.cs


public decimal Value
        {
            get
            {
                return decimal.Parse(txtValue.Text);
            }
            set
            {
                //txtValue.Text = value.ToString();
                txtValue.Text = String.Format("{0:0.00}", value.ToString());
            }
        }
14 years ago
Presume that you changed culture settings for admin area (it's not supported by default). Add the following method to your DecimalTextBox control:

protected override void OnInit(EventArgs e)
        {
            string validChars = NumberFormatInfo.CurrentInfo.NegativeSign;
            validChars += NumberFormatInfo.CurrentInfo.NumberDecimalSeparator;            
            ftbeValue.ValidChars = validChars;
            base.OnInit(e);
        }
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.