[Missing documentation] : Dialog service is necessary for RadzenHtmlEditor #23

Closed
opened 2026-01-29 17:30:17 +00:00 by claunia · 1 comment
Owner

Originally created by @tesar-tech on GitHub (Feb 4, 2021).

Describe the bug
Using RadzenHtmlEditor without configured dialog service results in error Unhandled exception rendering component: Cannot provide a value for property 'DialogService' on type 'Radzen.Blazor.RadzenHtmlEditorLink'. There is no registered service of type 'Radzen.DialogService'.

It is not mentioned in documentation or in sample page.

To Reproduce
Steps to reproduce the behavior:

  1. Add RadzenHtmlEditor
  2. Run app

Expected behavior
it should be mentioned in docs.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
To make it work use builder.Services.AddScoped<DialogService>(); in Program.cs

Originally created by @tesar-tech on GitHub (Feb 4, 2021). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** Using `RadzenHtmlEditor` without configured dialog service results in error ` Unhandled exception rendering component: Cannot provide a value for property 'DialogService' on type 'Radzen.Blazor.RadzenHtmlEditorLink'. There is no registered service of type 'Radzen.DialogService'.` It is **not** mentioned in [documentation ](https://www.radzen.com/documentation/blazor/htmleditor/)or in [sample page](https://blazor.radzen.com/html-editor). **To Reproduce** Steps to reproduce the behavior: 1. Add `RadzenHtmlEditor` 2. Run app **Expected behavior** it should be mentioned in docs. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Additional context** To make it work use `builder.Services.AddScoped<DialogService>();` in `Program.cs`
Author
Owner

@akorchev commented on GitHub (Feb 4, 2021):

Thanks! We will add this to the documentation.

@akorchev commented on GitHub (Feb 4, 2021): Thanks! We will add this to the documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#23