RadMaskedTextInput, exception on paste

5 posts, 0 answers
  1. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2011

    Posted 11 Mar Link to this post

    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

  2. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2011

    Posted 11 Mar Link to this post

    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)

  3. UI for WPF is Visual Studio 2017 Ready
  4. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 15 Mar Link to this post

    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.
  5. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2011

    Posted 16 Mar Link to this post

    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

  6. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 16 Mar Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready