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

RTF containing protected text does not make protected text readonly.

5 Answers 317 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Parag
Top achievements
Rank 1
Parag asked on 29 Jul 2016, 10:26 AM

 

I have below rich text,

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}{\f1\fnil\fcharset0 Tahoma;}}
\viewkind4\uc1\pard\protect\f0\fs22 This is protected text\protect0\f1\fs16\par
}

It contains "\protect" tag which indicates the text between this tag is protected and cant be edited.

But when I bind this RTF to RadRichTextBox, it displays the text correctly. But it loses the protection. It does not make the text read-only.

How to make this text read-only?

5 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 03 Aug 2016, 07:00 AM
Hi Parag,

Import and export functionality for the read-only ranges is existing only in the XamlFormatProvider and thus, it could be used only for Xaml documents. However, this functionality is not yet available for the RtfFormatProvider. I've logged an item in our backlog and here is the related item in our feedback portal. For now, I could suggest you to vote and subscribe for it in order to be notified about any related changes.

If you need further assistance, please get back to us again.

Regards,
Todor
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Parag
Top achievements
Rank 1
answered on 03 Aug 2016, 07:58 AM

Hi Todor,

Thank you for reply. Please let me know in which release, this would be fixed.

0
Todor
Telerik team
answered on 03 Aug 2016, 08:55 AM
Hi Parag,

I cannot commit to a specific time-frame when the feature will be available. However, since you are already following the feedback item, you will be notified about any related changes. 

Regards,
Todor
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Parag
Top achievements
Rank 1
answered on 03 Aug 2016, 10:23 AM
Okay. 
0
Parag
Top achievements
Rank 1
answered on 03 Aug 2016, 10:24 AM
Okay.
Tags
RichTextBox
Asked by
Parag
Top achievements
Rank 1
Answers by
Todor
Telerik team
Parag
Top achievements
Rank 1
Share this question
or