Good Morning Telerik Team,
I'm having some issues getting rRichTextBox and DataProvider to work togther. I need to set them up in the code behind and I think I'm doing it correctly, but some events aren't firing. Below is code snippet where I'm passing in a rtb and assigning it to an HtmlDataProvider and subscribing to the SetupDocument event, but the event isn't firing. I've verified that this method is called before the RadDocument is assigned to the rtb.
_radRichTextBox = radRichTextBox;
_onRadRichTextBoxShowingEventHandler = OnRadRichTextBoxShowing;
var contextMenu = (ContextMenu)radRichTextBox.ContextMenu;
contextMenu.Showing += _onRadRichTextBoxShowingEventHandler;
HtmlDataProvider.RichTextBox = _radRichTextBox;
HtmlDataProvider.SetupDocument += HtmlDataProviderOnSetupDocument;