Cannot prevent user from entering the footer when document is protected

6 posts, 2 answers
  1. Mihajlo
    Mihajlo avatar
    35 posts
    Member since:
    Aug 2018

    Posted 14 Nov 2018 Link to this post

    Create new Word-inspired project. Add the event handler below:

    private void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
    {
        if (e.Command is EditFooterCommand)
        {
            e.Cancel = true;
        }
    }

     

    If document is not protected then user cannot enter the footer, either by menu or by double-click. If the document is protected (menu Review > button Protect Document) the user cannot edit the footer (as document is protected), nor can they enter it by menu (Insert > Footer), but they can still enter it by double-click. Is there a way to prevent them even from entering the footer by double-click when the document is protected?

  2. Answer
    Boby
    Admin
    Boby avatar
    698 posts

    Posted 19 Nov 2018 Link to this post

    Hi Mihajlo,

    I can confirm that the CommandExecuting event is not raised when the document is protected. I logged the issue here: 
    FIX. RadRichTextEditor - Entering header and footer cannot be prevented using CommandExecuting event when the document is protected

    We've investigated the case with the team, and identified a possible fix. If the integration testing goes well, the fix will be included in the next official release (R1 2019), expected in January. I've also tried to find a workaround, but one seems not possible.

    Please, excuse us for the inconvenience. We have added points to your account for the report. Don't hesitate to contact us if you have other questions.


    Regards,
    Boby
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Mihajlo
    Mihajlo avatar
    35 posts
    Member since:
    Aug 2018

    Posted 07 Mar Link to this post

    Friendly reminder on this issue, so it's not overlooked for R2.
  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3173 posts

    Posted 11 Mar Link to this post

    Hello, Mihajlo,    

    I have tested the behavior in the latest version and it seems to be addressed. Cancelling the EditFooterCommand executing prevents to enter edit mode for the footer. However, the status of the feedback item is not updated accordingly. I have escalated this item and once it passes the QA cycle, we will update the status.

    Could you please give it a try in the latest version and share with us whether you are experiencing any undesired behavior? Thank you in advance for your cooperation.

    I am looking forward to your reply.

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Mihajlo
    Mihajlo avatar
    35 posts
    Member since:
    Aug 2018

    Posted 12 Mar in reply to Dess | Tech Support Engineer, Sr. Link to this post

    CommandExecuting handler is now called when document is protected (nice), but it is still not called for read-only document (radRichTextEditor1.IsReadOnly = true).
  6. Answer
    Boby
    Admin
    Boby avatar
    698 posts

    Posted 12 Mar Link to this post

    Hi Mihajlo,

    We are glad that the fix indeed worked for you. We were also able to extend it for the read-only stated of RadRichTextEditor. If the integration testing passes, the item will be included in the next official release. You can follow this item to get notifications: RadRichTextEditor: Entering header and footer cannot be prevented using RadRichTextBox.CommandExecuting event when RadRichTextBox is read-only

    Should you have further questions please let me know.

    Regards,
    Boby
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top