IInsertHyperlinkDialog.ShowDialog() and newline characters

4 posts, 0 answers
  1. Evan
    Evan avatar
    8 posts
    Member since:
    Jul 2012

    Posted 12 Dec 2013 Link to this post

    We are using RadControls for WPF version 2013.2.611.40

    A bug was reported to us where the original selected text in a RadRichTextBox was not displayed in our custom Insert Hyperlink dialog.  This is because the RadRichTextBox does not pass along the selected text to the IInsertHyperlinkDialog.ShowDialog() method if the text includes trailing newline characters.

    Expected behavior (for example, Microsoft Outlook):

    Open a blank new email, type a word, press enter, and select the whole line containing the word.  The editor will select the word, along with the trailing newline character.  When you click Insert -> Hyperlink, the trailing newline character is deselected, so that it will not be included in the created hyperlink.  The "Text to display" field will then contain the word you typed.

    Actual behavior (In the WPF RadRichTextBox)

    Open a blank document, type a word, press enter, and select the whole line containing the word.  The editor will select the word, along with the trailing newline character.  When you execute the InsertHyperlinkCommand, IInsertHyperlinkDialog.ShowDialog() is called on our implementation of IInsertHyperlinkDialog as expected.  However, the newline character remains selected, and as a result the passed "text" string is null.  The resulting behavior is that we do not display anything in the "Text to display" field of the Insert Hyperlink dialog.

    Is this a known issue?

    Thanks,
    Evan



       
  2. Vasil
    Admin
    Vasil avatar
    124 posts

    Posted 17 Dec 2013 Link to this post

    Hello Evan,

    Thank you for this inquiry.

    Unfortunately, this behavior is by design. However, we have in our product backlog to deselect the trailing newline character when inserting hyperlink, but we are afraid that cannot engage with any time frame when it could be implemented.

    Please, do not hesitate to contact us if you have any other comments or questions.

    Regards,
    Vasil
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Evan
    Evan avatar
    8 posts
    Member since:
    Jul 2012

    Posted 17 Dec 2013 Link to this post

    Is there an issue number we can use to track the progress of this fix?

    Thanks,
    Evan
  5. Vasil
    Admin
    Vasil avatar
    124 posts

    Posted 20 Dec 2013 Link to this post

    Hi Evan,

    I added the item into our Ideas & Feedback portal here, where you could suggest new feature requests and bug reports, vote to increase their priorities, comment and track our progress on them.

    Let me know if you have any additional comments or questions.

    Regards,
    Vasil
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top