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

MaskedEditBox Missing Last 0

2 Answers 51 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Joon-Sae
Top achievements
Rank 1
Joon-Sae asked on 19 Jan 2015, 04:25 PM
http://dojo.telerik.com/EXODI

creating a mask as described below, the last character should be the number zero.
$("#maskedtextbox").kendoMaskedTextBox({
    mask: "\\1\\0A\\ 00\\ 00\\ 000\\ 00\\ L0\\ \\00",
  value: "100 14 36 085 17 W6 00"
});

when the mask renders it renders as 100 14 36 085 17 W6 0_
it loses the last character.  If the last character is not a zero then it seems to work fine but must be some wierd logic in there where it's causing the last number to be lost.

2 Answers, 1 is accepted

Sort by
0
Joon-Sae
Top achievements
Rank 1
answered on 19 Jan 2015, 05:02 PM
The problem seems to be line 160 in kendo.maskedtextbox.js

by getting the unmasked value and then passing it along to mask (which in turn gets an unmasked value) drops characters that match the mask and the unmasked value.

removing the unmask prior to setting mask seems to correct the issue.
0
Georgi Krustev
Telerik team
answered on 21 Jan 2015, 01:17 PM
Hello Joon-Sae,

Thank you for drawing our attention to this issue. I logged the bug here and we will try to address it for the next official release of Kendo UI.

I updated your Telerik points because of the involvement.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MaskedTextBox
Asked by
Joon-Sae
Top achievements
Rank 1
Answers by
Joon-Sae
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or