Create new Word-inspired project. Add the event handler below:
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?
5 Answers, 1 is accepted
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.
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.
Dess | Tech Support Engineer, Sr.
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.