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

IInsertHyperlinkDialog.ShowDialog() and newline characters

3 Answers 25 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Evan
Top achievements
Rank 1
Evan asked on 12 Dec 2013, 04:32 PM
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



   

3 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 17 Dec 2013, 03:16 PM
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 >>
0
Evan
Top achievements
Rank 1
answered on 17 Dec 2013, 05:59 PM
Is there an issue number we can use to track the progress of this fix?

Thanks,
Evan
0
Vasil
Telerik team
answered on 20 Dec 2013, 11:47 AM
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 >>
Tags
RichTextBox
Asked by
Evan
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Evan
Top achievements
Rank 1
Share this question
or