RTF containing protected text does not make protected text readonly.

6 posts, 0 answers
  1. Parag
    Parag avatar
    4 posts
    Member since:
    Jul 2014

    Posted 29 Jul Link to this post

     

    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?

  2. Todor
    Admin
    Todor avatar
    168 posts

    Posted 03 Aug Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Parag
    Parag avatar
    4 posts
    Member since:
    Jul 2014

    Posted 03 Aug in reply to Todor Link to this post

    Hi Todor,

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

  5. Todor
    Admin
    Todor avatar
    168 posts

    Posted 03 Aug Link to this post

    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.
  6. Parag
    Parag avatar
    4 posts
    Member since:
    Jul 2014

    Posted 03 Aug in reply to Todor Link to this post

    Okay. 
  7. Parag
    Parag avatar
    4 posts
    Member since:
    Jul 2014

    Posted 03 Aug in reply to Todor Link to this post

    Okay.
Back to Top
UI for WPF is Visual Studio 2017 Ready