Hi,
I am using radnumeric text box in currency formate. How can configure textbox to appear the negative value as shown in screen shot.
I am using radnumeric text box in currency formate. How can configure textbox to appear the negative value as shown in screen shot.
RadNumericTextBox txtCostBasis = dataItem.FindControl("txtCostBasis") as RadNumericTextBox;
txtCostBasis.Type = NumericType.Currency;
txtCostBasis.NumberFormat.DecimalDigits = 2;
txtCostBasis.NumberFormat.DecimalSeparator = ".";
txtCostBasis.NumberFormat.GroupSeparator = ",";
txtCostBasis.NumberFormat.GroupSizes = 3;
txtCostBasis.NumberFormat.NegativePattern = "$ -n";
txtCostBasis.NumberFormat.PositivePattern = "$ n";
txtCostBasis.Culture = new CultureInfo("en-US");