Unplanned
Last Updated: 16 Dec 2022 11:03 by ADMIN
Toby
Created on: 16 Dec 2022 10:53
Category: MaskedEditBox
Type: Bug Report
1
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 11.22.33.44

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 11.22.33.255 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
ADMIN
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:

https://stackoverflow.com/questions/5284147/validating-ipv4-addresses-with-regexp 

I hope this helps.

Regards,
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/.