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

RadMaskedTextInput, exception on paste

4 Answers 29 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 11 Mar 2016, 01:26 PM

Hello

UI for WPF 2015.2.623.45

I use RadMaskedTextInput in a xbap web application and have an issue with pasting text. Sporadically the application crashes with a

System.ArgumentOutOfRangeException
Message: Index was out of range. Must be non-negative and less than the size of the collection.

exception.

The pasted string does not contain any special charactes.

 

Regards

Thomas

4 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 11 Mar 2016, 01:41 PM

Additional info:

at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
   at Telerik.Windows.Controls.RadMaskedTextInput.HandlePasteNoMask(Object value, Object& returnString)
   at Telerik.Windows.Controls.RadMaskedTextInput.HandlePasteOverride(Object value, Object& returnString)
   at Telerik.Windows.Controls.RadMaskedInputBase.HandlePaste()
   at Telerik.Windows.Controls.RadMaskedInputBase.OnApplicationPaste(Object sender, ExecutedRoutedEventArgs e)

0
Martin Ivanov
Telerik team
answered on 15 Mar 2016, 01:48 PM
Hello Thomas,

We are not aware of the reported error and cannot reproduce it. Can you please send me a sample project or runnable code snippets that demonstrate the issue? This will allow me to test it locally and investigate what is causing this behavior.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Thomas
Top achievements
Rank 1
answered on 16 Mar 2016, 03:38 PM

Hello

I really would like to send you a small example, can you tell me how to do this? Allowed extensions: .jpg, .jpeg, .gif, .png

 

Regards

Thomas

0
Martin Ivanov
Telerik team
answered on 16 Mar 2016, 04:12 PM
Hi Thomas,

Yes, the forum allows only image attachments. To send an archive you can open a new Support Ticket from your account with your questions and the isolated project.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or