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

How to disable protected document editable region background colour?

2 Answers 29 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 25 May 2012, 01:19 AM
Hi,

How do you disable the background colour of an editable region when a document is protected?

See my attached image. Notcie that the editable areas appear yellow. I want to make them transparent.

Thank you,

Rob

2 Answers, 1 is accepted

Sort by
0
Accepted
Vasil
Telerik team
answered on 29 May 2012, 04:21 PM
Hello Robert,

You can implement your custom UI layer builder, where PermissionRangesDecoration layer is removed. Please, refer to this help article for more information about custom UI layers. 

The following snippet demonstrates the code that your custom layers builder should contain:

public class CustomLayersBuilder : UILayersBuilder
{
    protected override void BuildUILayersOverride(IUILayerContainer uiLayerContainer)
    {
        uiLayerContainer.UILayers.Remove("PermissionRangesDecoration");
    }
}

I hope this helps. Don't hesitate to contact us if you have other questions.

Regards,
Vasil
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Robert
Top achievements
Rank 1
answered on 18 Jun 2012, 11:57 PM
thanks that works well.

For anyone who doesn't know how to apply the UI Layer you can do it like so:

//Set Custom UI Layer
this.radRichTextBox.UILayersBuilder = new CustomUILayersBuilder();
Tags
RichTextBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Robert
Top achievements
Rank 1
Share this question
or