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

Dot(.) not as a decimal placeholder

1 Answer 91 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Ricardo Lavor
Top achievements
Rank 1
Ricardo Lavor asked on 18 Aug 2017, 08:52 PM

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?

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 Aug 2017, 08:26 AM
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:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/category/170331-maskedtextbox

Regards,
Stefan
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.
Tags
MaskedTextBox
Asked by
Ricardo Lavor
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or