Exception Report

2 posts, 0 answers
  1. Martin Horst
    Martin Horst avatar
    39 posts
    Member since:
    Apr 2010

    Posted 15 Apr 2013 Link to this post

    Hi,

    i'm currently evaluating the Rich Textbox Control and i found some minor bug in it. If you add a hyper link at the beginning of the document and then try to delete it in the editor, an exception is thrown. 

    This is how I add the hyper link:
    HyperlinkInfo lHyperlinkInfo = new HyperlinkInfo();
    lHyperlinkInfo.NavigateUri = "mailto://test@test.de";
    radRichTextBox1.InsertHyperlink(lHyperlinkInfo, "Test");

    After deleting the hyper link in the editor, the following exception appears:
    System.NullReferenceException: FromElement must not be null.
    bei Telerik.WinControls.RichTextBox.Model.DocumentElement.CopyPropertiesFrom(DocumentElement fromElement)
    bei Telerik.WinControls.RichTextBox.DocumentView.GetCurrentParagraphStyle()
    bei Telerik.WinControls.RichTextBox.DocumentView.UpdateCurrentStyles()
    bei Telerik.WinControls.RichTextBox.DocumentView.document_DocumentArranged(Object sender, EventArgs e)
    bei Telerik.WinControls.RichTextBox.Model.RadDocument.OnDocumentArranged()
    bei Telerik.WinControls.RichTextBox.Layout.DocumentLayoutBox.ArrangeOverride(SizeF finalSize)
    bei Telerik.WinControls.RichTextBox.Layout.LayoutElement.ArrangeCore(RectangleF finalRect)
    bei Telerik.WinControls.RichTextBox.Layout.LayoutElement.Arrange(RectangleF finalRect)
    bei Telerik.WinControls.RichTextBox.Layout.ContextLayoutManager.UpdateLayout()
    bei Telerik.WinControls.RichTextBox.DocumentPosition.CallOnPositionChanging()
    bei Telerik.WinControls.RichTextBox.DocumentPosition.MoveToPreviousInline()
    bei Telerik.WinControls.RichTextBox.DocumentPosition.GetPreviousInlineBox()
    bei Telerik.WinControls.RichTextBox.Model.RadDocument.IsValidPosition(DocumentPosition p)
    bei Telerik.WinControls.RichTextBox.Model.RadDocument.EnsureValidPositionCallback(DocumentPosition p, Func`1 IsMoveForward)
    bei Telerik.WinControls.RichTextBox.DocumentPosition.ResumePositionValidation()
    bei Telerik.WinControls.RichTextBox.Model.RadDocument.ExecuteCommand(CommandBase command, DocumentCommandContext context)
    bei Telerik.WinControls.RichTextBox.DocumentView.Delete(Boolean deletePrevious)
    bei Telerik.WinControls.RichTextBox.UI.InputBehavior.ProcessBackKey(KeyEventArgs e)
    bei Telerik.WinControls.RichTextBox.UI.InputBehavior.ProcessKeyDown(KeyEventArgs e)
    bei Telerik.WinControls.RichTextBox.RadRichTextBox.OnKeyDown(KeyEventArgs e)
    bei System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
    bei System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
    bei System.Windows.Forms.Control.WmKeyChar(Message& m)
    bei System.Windows.Forms.Control.WndProc(Message& m)
    bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    bei Telerik.WinControls.RadControl.WndProc(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Best regards
    Martin
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 17 Apr 2013 Link to this post

    Hello Martin,

    We are aware about this issue. We have already addressed it in the latest release. Could you upgrade to the latest version Q1 2013 SP1 (2013.1 321)? If the issue is still presented, I please give us more information about your scenario and how you are trying to delete the hyperlink.

    Kind regards,
    Svett
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top