Show/Hide comments

2 posts, 0 answers
  1. Alberto
    Alberto avatar
    11 posts
    Member since:
    Jan 2011

    Posted 15 Oct 2012 Link to this post

    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!

  2. Alex
    Alex avatar
    130 posts

    Posted 16 Oct 2012 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top