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

Relative Anchor Links

3 Answers 56 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Brian Sayatovic
Top achievements
Rank 1
Brian Sayatovic asked on 08 Jul 2014, 09:00 PM
Silverlight supports frame navigation using relative anchor links, e.g. "#Foo".  But I can't seem to create such a link in the RichTextBox.  It always wants to treat it as an absolute URL.

Is there a way to accomplish this?

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 10 Jul 2014, 01:05 PM
Hello,

RadRichTextBox allows to create links to web pages (absolute Uri) or places in the current document (bookmarks). This is similar to how document processors like MS Word work, rather than the way Silverlight navigation is used.

Let us know if you have other comments or questions.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Brian Sayatovic
Top achievements
Rank 1
answered on 10 Jul 2014, 01:26 PM
So Silverlight navigation links can't be created in the RichTextBox?  For example, I have some XAML right now that includes this:

<HyperlinkButton Content="All..." NavigateUri="/Crm/Matters" />

When clicked, my browser's URL is changed from "http://localhost/" to "http://localhost#/Crm/Matters".

I'd really like to embed either link ("/Crm/Matters" for Silverlight navigation, or "#/Crm/Matters" for browser navigation).  But it seems like I can only do an absolute link.  With an absolute link, the host will be hard-coded into the URL.  That's very troublesome for deploying the same content to multiple environments where the host name differs.
0
Petya
Telerik team
answered on 15 Jul 2014, 11:10 AM
Hi,

As I explained in my previous post, hyperlinks in the context of RadRichTextBox are closer to the ones in document processors rather than the Silverlight runtime. Still, if you want to you can add an actual HyperlinkButton in a document which should allow you to achieve the desired result. Please check this article explaining InlineUIContainers. Note that the export of these document elements is limited, so if you want to preserve your documents you would need to use XAML format.

I hope this is helpful.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
RichTextBox
Asked by
Brian Sayatovic
Top achievements
Rank 1
Answers by
Petya
Telerik team
Brian Sayatovic
Top achievements
Rank 1
Share this question
or