Track Changes - limit accept revisions to supervisor

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    5 posts
    Member since:
    Jun 2015

    Posted 20 Oct Link to this post

    I am tracking changes on a WPF RadRichtextBox so that I can see what changes a user has made, so that they can be approved by a supervisor later on. I don't want the first user to see the change tracking. 

    Is there a way that I can remove the ability for that user to accept their own changes. Currently they can change the document, accept the change and there is no indication that they have changed anything.

    I'm also looking to remove the visual indications of changes to the basic user. I have set Insert.Decoration = None and same for Delete.Decoration. But I am still getting tooltips with the revision details when the mouse is over the change.

    Thanks

  2. Tanya
    Admin
    Tanya avatar
    583 posts

    Posted 25 Oct Link to this post

    Hello Andrew,

    Editing a document as a final without showing any track changes markup is not supported in RadRichTextBox. We have logged a feature request in our public portal where you can vote for its implementation and track its status. Disabling the accept/reject functionality for a user is also among the nut supported functionalities. Here is the feedback item for this feature: Implement option to restrict users from Accept/Reject changes operations when editing documents with Track Changes enabled.

    To ensure the tooltips related to tracked changes are not shown, you can remove the layer responsible for showing them - RevisionsToolTipLayer. To achieve that, you will need to implement a custom UILayersBuilder and invoke the Remove() method passing it the layer you would like to remove in the BuildUILayersOverride() method. A similar approach is described in the Customizing Presentation through UI Layers topic and here is a sample code for removing a layer:
    [CustomUILayersBuilder]
    public class CustomUILayersBuilder : UILayersBuilder
    {
        protected override void BuildUILayersOverride(Telerik.Windows.Documents.UI.IUILayerContainer uiLayerContainer)
        {
            uiLayerContainer.UILayers.Remove(DefaultUILayers.ToolTipLayer);
        }
    }

    Hope this information is useful.

    Regards,
    Tanya
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top