Dot(.) not as a decimal placeholder

2 posts, 0 answers
  1. Ricardo Lavor
    Ricardo Lavor avatar
    4 posts
    Member since:
    Jul 2017

    Posted 18 Aug 2017 Link to this post

    I need to have a mask in the following format: 0000.00.00 where the dot(.) should not act like a decimal placeholder, even with the clearPromptChar

    setted to true and promptChar with " " value, after the field lose his focus the decimal placeholder is shown.


    What I need:

    If user types: 1234 - Expected: 1234 - Actual: 1234.  .  

    If user types: 12345 - Expected: 1234.5 - Actual: 1234.5  .  

    Is this feature available in mask option? it exposes any function where i should format by myself?



  2. Stefan
    Stefan avatar
    1886 posts

    Posted 22 Aug 2017 Link to this post

    Hello Ricardo,

    This is the expected behaviour from the widget as it will format the value based on the provided mask.

    The mentioned clearPromptChar and promptChar properties are affecting the promptChar which is the underscore.

    Based on the provided examples I can assume the desired result is to partially unmask the value onblur. If this is correct I can suggest submitting a feature request and based on its popularity we may implement it in a future release:

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top