Calculator Picker and decimal places

4 posts, 0 answers
  1. Craig
    Craig avatar
    6 posts
    Member since:
    Nov 2010

    Posted 11 Jun 2012 Link to this post

    Is there a way to get the calculator picker to display 1.00 instead of just 1?  I want to use it to display money values and 1.00 feels better than just 1.

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 12 Jun 2012 Link to this post

    Hi,

     Have you tried setting FormatString for the Binding of the Calculator Picker?

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Craig
    Craig avatar
    6 posts
    Member since:
    Nov 2010

    Posted 12 Jun 2012 Link to this post

    Yes.  It seems to be completely ignored.

                <telerik:RadCalculatorPicker Margin="3"
                                             FontSize="12"
                                             Value="{Binding Path=Transaction.Amount, Mode=TwoWay, StringFormat={}{0:C}}">
                </telerik:RadCalculatorPicker>

    The binding works fine as the value changes when I click on the different transactions.  But the format is ignored.  I also tried using a converter but that doesn't work either.

  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 14 Jun 2012 Link to this post

    Hello Craig,

    Indeed, string format is not respected for WPF in this case. I will investigate the issue and write you back once I could provide more information on the topic. Thank you for your patience.  

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top