Does anyone have a suggestion for binding the state of a button to whether the RichTextEditor contains text? I don't want the button to be enabled unless there is content in the rich text editor.
2 Answers, 1 is accepted
0
Didi
Telerik team
answered on 29 Dec 2021, 09:03 AM
Hello,
You can use a converter and bind it to the Button IsEnabled property.
var htmlSource = @"<h4>One of the Most Beautiful Islands on Earth - Tenerife</h4>";
this.richTextEditor.Source = RichTextSource.FromString(htmlSource);
This is just an approach you can use, you may need to extend the logic further to match the exact scenario. Of course you can search for alternative solution.