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
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:
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