Last Updated: 16 Dec 2022 11:03 by ADMIN
Created on: 16 Dec 2022 10:53
Category: MaskedEditBox
Type: Bug Report
RadMaskedEditBox: IPMaskTextBoxProvider doesn't replace the selected text correctly
I'm getting weird / unexpected behaviour when using the masked edit box configured to handle IP Addresses.

So using the latest Demo Application, I open up the Masked Edit Box, and in the IP edit box I type in

I then double click and highlight the 44 part, and type 6 to replace the 44 with a single 6, however the following is displayed

After clicking on OK this then changes to show the ip address as It seems that clicking on 6 does not replace the 44 but gets inserted at the start of the element. Is there a workaround for this behaviour ?
Attached Files:
1 comment
Dess | Tech Support Engineer, Principal
Posted on: 16 Dec 2022 11:03

Hello, Toby,

Thank you for bringing this to our attention.

Currently, due to the specificity of the issue, the possible solution that I can suggest is to use  MaskType.Regex and specify the appropriate regular expression for the Mask property. The following StackOverflow thread offers suitable expressions for the IP validation:


I hope this helps.

Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.