Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadMaskedNumericInput does not bind decimal datatype correctly

$
0
0
Hi Sagar,

RadMaskedNumericInput is designed to work with numbers and its Value property is of type nullable double. However, for your scenario you are working with decimal and we recommend  using the RadMaskedCurrencyInput instead.

You could then either use the FormatString="P2" property or customize the currency symbol for the mask as shown below:
CultureInfo culture = new CultureInfo("en-US");
culture.NumberFormat.CurrencySymbol = "%";
culture.NumberFormat.CurrencyPositivePattern = 1;
this.uxPercentToPay.Culture = culture;
Please let me know if any further questions arise.

Regards,
Peshito
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images