Unplanned
Last Updated: 06 Nov 2024 15:20 by ADMIN
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)

1 comment
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.