Issue with RadRichTextBox and Silvelight 5

2 posts, 0 answers
  1. Pradnya
    Pradnya avatar
    31 posts
    Member since:
    Aug 2011

    Posted 16 Apr 2012 Link to this post


    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
  2. Vasil
    Vasil avatar
    124 posts

    Posted 17 Apr 2012 Link to this post

    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. 

    the Telerik team

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

Back to Top