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

Track Changes - limit accept revisions to supervisor

1 Answer 60 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 20 Oct 2017, 08:40 AM

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

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 25 Oct 2017, 07:11 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
Andrew
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or