Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2385
clipboard error question
posted

I add a MaxLength valueconstraint on cells edit style(XamTextEditor style). So when I paste a string longer than MaxLength, I will get ValidationError. And grid will left the original value in cell and continue to next cell. I want to know how can I truncate the pasted string to fit the ValueConstraint.

  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post, but I wasn’t able to reproduce your behavior, so I created a sample project for you with the functionality you want. Also i can say that the behavior you want to achieve is by default in both versions 10.3 and 11.1. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Feel free to write me if you have further questions.

    XamTextEditor.zip
  • 2385
    Offline posted

    Another question:

    Can I get the pasted string which cause the error by ClipboardOperationErrorEventArgs?