RadNumericUpDown Format text during editing

3 posts, 1 answers
  1. Vladimir
    Vladimir avatar
    12 posts
    Member since:
    Feb 2011

    Posted 01 Feb 2018 Link to this post

    Is there a way to format a text being edited of RadNumericUpDown text? 

    For example, to show thousands white-space separator like 1 000 when user in a textbox actually is entering 1000

    GridViewDataColumn has DataFormatString property which formats entered text after edit is finished, but we want to format it dynamically during editing when textbox focus is not lost and user keeps typing

     

    Thanks

     

  2. Answer
    Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 06 Feb 2018 Link to this post

    Hi Vladimir,

    Currently, applying such string format is not supported by RadNumericUpDown. This is logged as a feature request, but is not yet planned for development. You can track the relevant item in our Feedback Portal: Provide an option to set custom StringFormat for the Value of RadNumericUpDown when not in edit mode.

    As an alternative, I can suggest you using the RadMaskedNumericInput component as it exposes the FormatString property for such purposes. Would this be feasible for you?

    Regards,
    Stefan
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Vladimir
    Vladimir avatar
    12 posts
    Member since:
    Feb 2011

    Posted 13 Feb 2018 in reply to Stefan Link to this post

    Yes, Stefan, 

     

    RadMaskedNumericInput is what we replaced with and it worked for us.

     

    Thanks a lot

Back to Top