RadRichTextBox hyperlink dialog issue

4 posts, 0 answers
  1. Sebastien
    Sebastien avatar
    5 posts
    Member since:
    Apr 2016

    Posted 11 May Link to this post


    We're using version 2015.2.728.45 of Telerik UI for WPF and we are encountering an issue with the hyperlink dialog. Here is the related xaml code used in the ribbon of the application:

    <telerik:RadRibbonButton LargeImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/inserthyperlink.png" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ShowInsertHyperlinkDialogCommand}" telerik:ScreenTip.Description="Create a link to a Web page, a picture or an e-mail address." telerik:ScreenTip.Title="Insert Hyperlink" Size="Large" Text="Hyperlink" />

    Each time we insert/update an hyperlink using the "Insert Hyperlink" modal dialog, we get an extra "http://" prefix added to the beginning of the address. What should we do to avoid this behaviour?

    Thanks for your help,


  2. Sebastien
    Sebastien avatar
    5 posts
    Member since:
    Apr 2016

    Posted 12 May Link to this post

    Another question: is there a way to use other protocols than http (for example UNC)?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sebastien
    Sebastien avatar
    5 posts
    Member since:
    Apr 2016

    Posted 13 May Link to this post

    OK I think I understand the issue:

    "http://blabla.com" is supported by the hyperlink dialog

    "http://blabla.com/bla bla" is not supported because of the space and will add an "http://" prefix each time you edit it...

    Can you fix this?

  5. Tanya
    Tanya avatar
    405 posts

    Posted 16 May Link to this post

    Hi Sebastien,

    This is a known behavior of the RadInsertHyperlinkDialog and it is related to its implementation. When the URL doesn't match the regular expression, an "http://" is added to the string.

    You could create a custom dialog and implement its behavior according to your preferences. The Custom InsertHyperlingDialog demo shows a sample on how this could be achieved.

    Hope this helps.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top