DecimalTextBox and NumericTextBox BUG, help-me

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 14 ans
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
Il y a 14 ans
What page(s) are you talking about (product editing, tax editing)?
Il y a 14 ans
all pages that use this field to date

ProductVariantDetails.aspx
CurrencyDetails.aspx

thanks for reply!
Il y a 14 ans
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());
            }
        }
Il y a 14 ans
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.