Negative sign after amount

2 posts, 0 answers
  1. Pascal
    Pascal avatar
    11 posts
    Member since:
    Jul 2010

    Posted 23 Jun 2011 Link to this post

    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?)
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 28 Jun 2011 Link to this post

    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">

    public MainPage()
              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
Back to Top