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

IInsertHyperlinkDialog problem

5 Answers 93 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 12 Dec 2011, 12:38 PM
Hi, Telerik.

When we use the IInsertHyperlinkDialog with empty RadRichTextBox we get an exception (when click on OK button in the dialog):

System.NullReferenceException: [Arg_NullReferenceException] 
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60310.0&File=mscorlib.dll&Key=Arg_NullReferenceException 
   at Telerik.Windows.Documents.Model.RadDocument.IsInRange(HierarchicalIndex inlineIndex, AnnotationRangeStart rangeStart) 
   at Telerik.Windows.Documents.Model.RadDocument.GetFieldStart(Inline inline) 
   at Telerik.Windows.Documents.Model.Inline.get_FieldStart() 
   at Telerik.Windows.Documents.Model.RadDocument.IsValidPosition(DocumentPosition p) 
   at Telerik.Windows.Documents.Model.RadDocument.EnsureValidPositionCallback(DocumentPosition p, Func`1 IsMoveForward) 
   at Telerik.Windows.Documents.DocumentPosition.ResumePositionValidation() 
   at Telerik.Windows.Documents.Model.RadDocument.ExecuteCommand(CommandBase command, DocumentCommandContext context) 
   at Telerik.Windows.Controls.RadRichTextBox.InsertHyperlink(HyperlinkInfo hyperlinkInfo, String hyperlinkText, StyleDefinition hyperlinkStyle) 
   at Telerik.Windows.Controls.RadRichTextBox.<ShowInsertHyperlinkDialog>b__24(String linkText, HyperlinkInfo linkInfo) 
   at CommonControls.TextBoxWithToolBar.InsertHyperlinkDialog.InsertHyperlinkDialogClosed(Object sender, WindowClosedEventArgs e) 
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e) 
   at Telerik.Windows.Controls.RadWindow.OnClosed(WindowClosedEventArgs args) 
   at CommonControls.Controls.Dialogs.ModalDialog.OnClosed(WindowClosedEventArgs args) 
   at Telerik.Windows.Controls.RadWindow.OnClosed() 
   at Telerik.Windows.Controls.WindowBase.TryClose(Boolean shouldCloseHost) 
   at CommonControls.Controls.Dialogs.ModalDialog.OkButton_Click(Object sender, RoutedEventArgs e) 
   at System.Windows.Controls.Primitives.ButtonBase.OnClick() 
   at System.Windows.Controls.Button.OnClick() 
   at Telerik.Windows.Controls.RadButton.OnClick() 
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) 
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) 
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) 
 
Is there any workaround to avoid it? Thanks.

5 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 14 Dec 2011, 01:06 PM
Hello Alex,

We have fixed this issue in the latest internal builds and the fix will also be included in the service pack in a few weeks. You can either upgrade to the version in the latest internal build or wait for the service pack.
Unfortunately, there is not a stable workaround with the Q3 official version of the control.

Kind regards,
Iva Toteva
the Telerik team

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

0
Håkan
Top achievements
Rank 1
answered on 13 Jan 2012, 11:23 AM
Hi,

I experience the same problem, for all dialogs, like insert symbol.
And not only in empty documents, but always if the caret position is at the end of the document.
Is there any timeframe for the next service pack?

Regards,
Håkan
0
Iva Toteva
Telerik team
answered on 13 Jan 2012, 01:18 PM
Hi Håkan,

Both issues - with inserting/editing hyperlinks and inserting a symbol have been fixed in 2011 Q3 SP1 (2011.3.1220), which was released on December 20th 2011.
Could you try using 2011 Q3 SP1? If you experience any issues, we would appreciate more details on the steps to reproduce the problem.

Greetings,
Iva Toteva
the Telerik team

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

0
Håkan
Top achievements
Rank 1
answered on 13 Jan 2012, 04:15 PM
Hi,

I didn't know that a service pack on 2011 Q3 was released.
Where can I find this information?
And shouldn't I get an email with this information as a customer?

Regard,
Håkan
0
Iva Toteva
Telerik team
answered on 17 Jan 2012, 01:54 PM
Hi Håkan,

Newsletters are sent only for the major releases, which occur three or four times a year.
In order to keep track of the latest developments and releases, you can subscribe to Telerik Blogs. In this way, you will not only be informed about a new release being out, but also about new controls and enhanced capabilities in the existing components.

Regards,
Iva Toteva
the Telerik team

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

Tags
RichTextBox
Asked by
Alex
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Håkan
Top achievements
Rank 1
Share this question
or