Getting error while using DialogService

0 Answers 156 Views
Dialog
Jörg
Top achievements
Rank 1
Jörg asked on 20 Sep 2024, 08:56 PM

Hello!

I'm trying to implement the DialgService as described in the example (Angular Dialogs Dialog Angular Service - Kendo UI for Angular (telerik.com) but I keep getting the following error:

Cannot attach dialog to the page.
Add an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.

Yes, I tried to google for a solution and some answers suggested, to put the 

<div kendoDialogContainer></div>

into my app.component.html but that didn't change anything. Setting the "appendTo" property only resulted in a typescript error.

Does anyone have a suggestion for me on how to fix this error?

 

Thanks for any help in advance!

Cheers

Joerg

 

 

 

Georgi
Telerik team
commented on 25 Sep 2024, 08:50 AM

Hi Joerg,

Thank you very much for the details provided.

From what I understood from your question, you are currently experiencing issues with opening a Kendo UI for Angular Dialog using the Angular Service approach such that an error is being thrown on the console. Please let me know if I misinterpreted the query.

Based on the information provided in the thread, I tried to replicate the error that you are getting on your side when following the approach for opening a Dialog suggested in our designated Angular Service article. However, it seems like I might be missing out on some of the reproduction steps since the Dialog is opened according to the expectations on my side.

For reference, I am attaching to this response the Angular project where I performed the testing. To run the app:

  1. Download and unzip the folder.
  2. Execute npm install.
  3. Run ng serve.

Since I am not entirely sure what might be the root cause for the discrepancy on your side and want to avoid misunderstandings, I would ask you to provide more detailed information about the specifics of the implementation or, ideally, a small runnable example demonstrating the error. This would allow me to gain a better understanding of the exact scenario and thus come up with a more suitable suggestion.

I am looking forward to your reply.

Regards,
Georgi
Progress Telerik

No answers yet. Maybe you can help?

Tags
Dialog
Asked by
Jörg
Top achievements
Rank 1
Share this question
or