How do I bind data to the html editor through a button click on demand?
I don't want a document loaded on view load.
Hi @RAGolko,
You can check the online demo. It is using @bind-Value
to set the content of the editor. As soon as you populate that value it will appear in RadzenHtmlEditor.
<RadzenHtmlEditor @bind-Value=@htmlValue />
<RadzenButton Click=@OnClick Text="Populate" />
@code {
string htmlValue = "";
void OnClick()
{
htmlValue = "<h1>Hello World!</h1>";
}