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

Issue with RadRichTextBox and Silvelight 5

1 Answer 80 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pradnya
Top achievements
Rank 1
Pradnya asked on 16 Apr 2012, 02:33 PM
Hi

In new version of Silverlight 5 in RadRichTextBox, after doing some Drag and drop functionality and typing some text in Textbox area we get error [not able to reproduce this issue in Silverlight 4]

System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at System.String.Substring(Int32 startIndex, Int32 length)
   at Telerik.Windows.Documents.Layout.SpanLayoutBox.BinarySearchSplitIndex(SpanLayoutBox spanBox, Single availableWidth)
   at Telerik.Windows.Documents.SpanBoxPositionHandler.MoveToLocation(PointF location)
   at Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position, Boolean MoveToNextIfOutOfBox)
   at Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentSingleMouseDown(Boolean ctrlPressed, Boolean shiftPressed, Point position, UIElement originalSource)
   at Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentMouseDown(Boolean ctrlPressed, Boolean shiftPressed, Point position, UIElement originalSource)
   at Telerik.Windows.Documents.UI.DocumentPresenterBase.Owner_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

Please help us how to resolved this issue

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 17 Apr 2012, 03:59 PM
Hello Pradnya,

Unfortunately, we were not able to reproduce this failure. Could you please elaborate more about it? What is the scenario in your application and what type of content do you drag and drop? It will be great if you can isolate the problem and send us some steps to reproduce or sample code/project for further investigation.

Looking forward to your response, either here or in the support ticket you have opened. 

Regards,
Vasil
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Pradnya
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or