This is a migrated thread and some comments may be shown as answers.

Negative sign after amount

1 Answer 60 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 23 Jun 2011, 03:46 PM
The default format in the latest internal build with negative amounts is: €         -4,91

I woul like to have €         4,91-

is it possible to change this (with formatstring?)

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 28 Jun 2011, 02:46 PM
Hi Pascal,

Yes this is possible. It is not possible with FormatString but there is an elegant code-behind solution:
<telerik:RadMaskedCurrencyInput Width="200" Height="30" Mask="#3.2" Culture="eu-ES" x:Name="mask">
 
           </telerik:RadMaskedCurrencyInput>

public MainPage()
      {
          InitializeComponent();
          CultureInfo culture = new CultureInfo("eu-ES");
          culture.NumberFormat.CurrencyNegativePattern = 11;
          culture.NumberFormat.CurrencyPositivePattern = 2;
          mask.Culture = culture;
      }
You can also examine the CurrencyNegativePatterns and CurrencyPositivePatterns .
Let us know if you need further assistance.

All the best,
Petar Mladenov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Pascal
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or