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

How to Control Deletion of Comments?

2 Answers 116 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
①Dr Mostafa
Top achievements
Rank 1
①Dr Mostafa asked on 17 May 2018, 11:00 AM

Hi every body ...

I'm using RadRichTextBox control. It is a very powerful control. In my scenario, user can add comments every day, but he can't delete the comments he had created in the previous day.

How can I Control deletion of the comments......

I thought of marking the comment using tag property or a similar property but I couldn't do this. Any help is greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Tanya
Telerik team
answered on 22 May 2018, 07:58 AM
Hello Mostafa,

When a comment is inserted or deleted, the InsertCommentCommand and DeleteCommentCommand are executed, so you can use the CommandExecuting and CommandExecuted to track the insertion and deletion of comments in RadRichTextBox. More information on how to work with the commands and the related events is available in the Commands help topic.

Hope this helps.

Regards,
Tanya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
①Dr Mostafa
Top achievements
Rank 1
answered on 23 May 2018, 12:46 AM
Thank you very much Tanya for your help ....
Tags
RichTextBox
Asked by
①Dr Mostafa
Top achievements
Rank 1
Answers by
Tanya
Telerik team
①Dr Mostafa
Top achievements
Rank 1
Share this question
or