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

Show/Hide comments

1 Answer 104 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Alberto
Top achievements
Rank 1
Alberto asked on 15 Oct 2012, 08:29 AM
Dear staff, 
  A control button RadRichTextBoxRibbonUI was created to display or hide the comments.
  In the codebehind is intercepted on the click event of the button and the code is executed:

private void RadRibbonButton_Click(object sender, RoutedEventArgs e)
 {
     editor.ShowComments = !editor.ShowComments
     
 }

The code runs but the view does not update, or do not see the comments.
It 'Need to refresh particular?

Thank you!

A.

1 Answer, 1 is accepted

Sort by
0
Alex
Telerik team
answered on 16 Oct 2012, 08:22 AM
Hi Alberto,

Currently the RadRichTextBox control is not refreshed automatically when the ShowComments property is changed. We will fix this for the next official release.
In your case you can use the ToggleComments() method of the control which will do exactly what you are and will also trigger layout update as expected.

Kind regards,
Alex
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Alberto
Top achievements
Rank 1
Answers by
Alex
Telerik team
Share this question
or