Completed
Last Updated: 07 Jan 2025 16:34 by ADMIN
Release 8.0.0 (2024 Q4)
Ted Anthony
Created on: 06 Nov 2024 15:18
Category: MaskedEntry
Type: Bug Report
0
MaskedEntry: [iOS] Exception in custom scenario when using control template

when setting MaxLength to RadEntry and this Entry is used in the Masked control template, the following exception occurs:

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length')
   at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
   at System.String.Substring(Int32 startIndex, Int32 length)
   at Telerik.RadStringHelper.Replace(String inText, Int32 startIndex, Int32 length, String replacementString)
   at Telerik.Maui.Handlers.RadMaskedEntryHandler.OnShouldChangeCharactersEvent(Object sender, ShouldChangeCharactersEventArgs args)
   at Telerik.Maui.Platform.RadMauiEntry.OnShouldChangeCharacters(Object sender, ShouldChangeCharactersEventArgs args)
   at Telerik.Maui.Handlers.RadTextFieldDelegate.ShouldChangeCharacters(UITextField textField, NSRange range, String replacementString)

2 comments
ADMIN
Elena
Posted on: 03 Jan 2025 11:20

Hi Ted,

A quick update: the issue is fixed in Telerik UI for .NET MAUI 8.0.0. Please, when it is convenient, update to this version if you are using an older one and check whether the issue is solved.

Regards, Elena Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Didi
Posted on: 06 Nov 2024 15:20

As a workaround use RegexMask and define the symbols in the mask property

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.