Relative Anchor Links

4 posts, 0 answers
  1. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 08 Jul 2014 Link to this post

    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?
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 10 Jul 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 10 Jul 2014 in reply to Petya Link to this post

    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.
  5. Petya
    Admin
    Petya avatar
    975 posts

    Posted 15 Jul 2014 Link to this post

    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.
     
Back to Top