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

Cannot prevent user from entering the footer when document is protected

5 Answers 16 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Mihajlo
Top achievements
Rank 1
Mihajlo asked on 14 Nov 2018, 02:39 PM

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?

5 Answers, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 19 Nov 2018, 02:19 PM
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.
0
Mihajlo
Top achievements
Rank 1
answered on 07 Mar 2019, 10:54 AM
Friendly reminder on this issue, so it's not overlooked for R2.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Mar 2019, 11:34 AM
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.
0
Mihajlo
Top achievements
Rank 1
answered on 12 Mar 2019, 09:30 AM
CommandExecuting handler is now called when document is protected (nice), but it is still not called for read-only document (radRichTextEditor1.IsReadOnly = true).
0
Accepted
Boby
Telerik team
answered on 12 Mar 2019, 02:53 PM
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.
Tags
RichTextEditor
Asked by
Mihajlo
Top achievements
Rank 1
Answers by
Boby
Telerik team
Mihajlo
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or