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

Overlapping Documents bug

5 Answers 94 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ronald Evers
Top achievements
Rank 1
Ronald Evers asked on 08 Jun 2010, 08:46 AM
Hello Telerik,

After some work I got the RichTextBox to pretty much work the way I want it. There is now only one issue left to resolve. Whenever I start typing in the editor some text appears and then it overlaps the current text and I can never get rid of it. Look in the attachment to see what I mean because it's a bit hard to describe.

Basically what Im doing is I created a usercontrol, I pass the text  value to that usercontrol through binding, so this might have a small delay, when the text is passed to it I load it into the control through a stream.

Are you guys familiar with this? Is there any way to fix it? Thanks for the help.

5 Answers, 1 is accepted

Sort by
0
Ronald Evers
Top achievements
Rank 1
answered on 08 Jun 2010, 11:36 AM
Also, another bug I found. I'm not sure whether to make a new topic for it so I'll just post it here.
The bug occurs whenever I select all the text and press backspace really fast. The follow message is thrown:

MESSAGE: Object reference not set to an instance of an object. 
TRACE:    bij Telerik.Windows.Documents.Commands.UndoableCommandBase.CopySelection(DocumentSelection fromSelection, DocumentSelection toSelection, Nullable`1 anchorPositions) 
   bij Telerik.Windows.Documents.Commands.UndoableCommandBase.SaveSelection(DocumentSelection fromSelection, DocumentSelection toSelection) 
   bij Telerik.Windows.Documents.Commands.SelectionBasedCommand.SaveSelection(RadDocument document) 
   bij Telerik.Windows.Documents.Commands.DeleteCommand.ExecuteCore(SelectionBasedCommandContext context) 
   bij Telerik.Windows.Documents.Commands.SelectionBasedCommand.ExecuteCore(Object context) 
   bij Telerik.Windows.Documents.Commands.CommandBase.Execute(Object context) 
   bij Telerik.Windows.Documents.Model.RadDocument.ExecuteUndoableCommand(UndoableCommandBase command, DocumentCommandContext context) 
   bij Telerik.Windows.Documents.UI.EditorContentPresenter.EditorCanvas_KeyDown(Object sender, KeyEventArgs e) 
   bij MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) 
   bij MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName) 

Also I'm having more issues with text appearing randomly, if I copy paste text then sometimes it just appears a bit further down in the editor and I cant select or remove the text, same as I posted above only now caused by copy and pasting.


0
Alex
Telerik team
answered on 10 Jun 2010, 01:37 PM
Hi Ronald Evers,

Thank you for taking the time to report this issues, we will address them in the next releases.

Regards,
Alex
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Fredrik Kvaal
Top achievements
Rank 1
answered on 07 Feb 2012, 04:32 PM
Was this issue fixed?
We have the same issue now with the latest SL4 release.
The context is a bit different:
I have a sentence where the first part of this sentence is "inside" a bookmark (BookmarkRangeStart and BookmarkRangeEnd).
If I then place the cursor right after this part (after the text that's inside the bookmark) and selecting forward by doing Shift + Home and then start typing something including a Norwegian character (like Ã… or Ø), we get this exception.

Message: "Object reference not set to an instance of an object."
Stack: "at Telerik.Windows.Documents.Commands.UndoableCommandBase.CopySelection....."

Thanx for your support.
0
Iva Toteva
Telerik team
answered on 09 Feb 2012, 04:05 PM
Hi Fredrik,

Thank you for getting to us with steps to reproduce the problem.

The bug which Ronald reported was fixed soon after that, but it seems that a similar issue has surfaced now. This time the problem is due to the use of AnnotationRanges, such as Bookmarks and Comments.

We have logged the bug and will try to fix it soon. However, we may not be able to squeeze it in the upcoming 2012 Q1, which is expected in less than two weeks. Please excuse us for the inconvenience.

Regards,
Iva Toteva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Alexey
Top achievements
Rank 1
answered on 06 Feb 2013, 09:48 AM
Hi, I have a version Telerik 2012.2.716.1050.
But this issue also reproduced, see attach. file.
Any workaround how to fix issue?
Tags
RichTextBox
Asked by
Ronald Evers
Top achievements
Rank 1
Answers by
Ronald Evers
Top achievements
Rank 1
Alex
Telerik team
Fredrik Kvaal
Top achievements
Rank 1
Iva Toteva
Telerik team
Alexey
Top achievements
Rank 1
Share this question
or