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

Strange behaviour redoing a paste command

3 Answers 27 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 10 Oct 2016, 09:59 AM

I found a strange behaviour:

  1. Open a document.
  2. Copy a text.
  3. Paste.
  4. Undo.
  5. Redo.

Redo command works but also select all document content. Why? How can I avoid it?
It happens only with paste: all other redo commands haven't this behaviour.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 12 Oct 2016, 04:01 PM
Hello Marco,

I tested a simple scenario with paste and undo/redo operations following the listed steps but couldn't reproduce the behavior you are observing. I am attaching a video to demonstrate my exact steps. Could you check it and let me know if I am missing something?

Regards,
Tanya
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Marco
Top achievements
Rank 1
answered on 13 Oct 2016, 10:06 AM

video.zip give me a 404 error :( .
Here my video showing the bug: http://download2.anastasis.it/software/marco/bugpasteredo.mp4

Redo button command code is just:

editor.Redo();

0
Tanya
Telerik team
answered on 17 Oct 2016, 01:31 PM
Hello Marco,

Please, excuse us for the attachment. The error was caused by a technical issue on our side which is already resolved and now you should be able to download the archive.

Unfortunately, I am still unable to replicate the behavior you are observing. To ensure that I am performing the exact steps, I captured a video. Please, find it attached. The buttons invoke respectively the Copy(), Paste(), Undo() and Redo() methods of RadDocumentEditor.

Could you share more details on how the text is copied? Are you using the methods of RadDocumentEditor to perform this as well? I tried them but no selection is left after the Redo(). Could you confirm the version of the assemblies you are using?

It would be great if you could open a support ticket through our ticketing system. There you can attach archives and I would like to ask you to share a sample application that reproduces the issue you are observing. This way we will be able to check what is causing the behavior and help you faster.

Regards,
Tanya
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
RichTextBox
Asked by
Marco
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Marco
Top achievements
Rank 1
Share this question
or