Go to Bookmark show on top of page

2 posts, 0 answers
    ANTONIO avatar
    4 posts
    Member since:
    Aug 2019

    Posted 05 Mar Link to this post

    When I programmatically use go to bookmark on the richtexteditor the bookmark is shown on the editor in the bottom of the page is there a way to show on the top of the page?

    I attached two pictures to explain batter the first one how the method gotobookmark is working and the second how i would like to be.


  2. Vladislav
    Vladislav avatar
    4 posts

    Posted 10 Mar Link to this post

    Hello Antonio,

    This is not something available right out of the box. I have logged this issue in our backlog: RadRichTextEditor: GoToBookmark does not reposition to top of the screen. You can vote for it and subscribe to the task by clicking the Follow button so you can receive updates about status changes.

    Fortunately, the desired behavior can be achieved by scrolling to the end of the document (for example) and then go to the bookmark. Note that there should be enough content after the bookmark for it to appear at the top of the page. Here is some sample code to show how you can achieve that:


                if (this.radRichTextEditor1.RichTextBoxElement.ActiveEditorPresenter != null)
                    // This is faster than calling radRichTextBox.ScrollToVerticalOffset() as it does not automatically refresh the UI 
                string bookmarkName = "Telerik";

    I hope this information helps.

    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top