Angular Dialog

0 Answers 309 Views
Dialog
Akash
Top achievements
Rank 1
Akash asked on 01 Dec 2023, 10:47 AM

I am using DialogService in my project and add below line in root file of the application so other component don't need to add. 


Now the problem is, if i opened the dialog from specific component then If I go back to previous screen then Dialog remain open.

What I found is, basically I put the div is in root file so the dialog will always reside it at root level. 

right now I have a one solution is to remove that div from root file and keep it in all component file, where it is used.

If you have another solution then let me know because I don't want to put that div in all angular component.

 

 

 

Georgi
Telerik team
commented on 06 Dec 2023, 10:13 AM

Hi Akash, 

Thank you very much for the details provided.

From what I understood from your question, you are currently utilizing the Kendo UI for Angular Dialog using the Angular Service approach and are experiencing issues such that when positioning the DialogContainerDirective inside the root file, opening and closing the Dialog from different components and navigating to the previous pages does not close the Dialog. Please, correct me if I misunderstood you.

Based on the information in the question, I tried reproducing this unexpected behavior of the Dialog component in the mentioned configuration. However, it seems like I might be missing out on some of the reproduction steps since the Dialog behaves according to the expectations on my side. For reference, I am sending you the StackBlitz demo where I tested the component in a similar configuration:

https://stackblitz.com/edit/angular-fk16j3

In order to avoid misunderstandings and provide the maximum utility out of the support service, I would ask you to provide more detailed information about the exact specifics of the implementation or ideally a small runnable example demonstrating the issue. This would allow me to reproduce it on my side, debug it, and thus provide a more case-specific suggestion.

I am looking forward to your reply.

Regards,
Georgi
Progress Telerik

 

Akash
Top achievements
Rank 1
commented on 07 Dec 2023, 09:44 AM

Hello Georgi
Yes you understood correct.
Looks like you implemented exactly which is align my requirement. 

Let me share runnable example with you so you can get better idea.

Thanks !!

Georgi
Telerik team
commented on 11 Dec 2023, 01:26 PM

Hi Akash, 

Sure, take your time to prepare a runnable sample that would better illustrate the issue that you are currently experiencing.

It is important to mention that in case the code for the specific implementation where the issue could be observed is private or the matter requires more extensive communication, licensed users are allowed to open private support tickets that will be directly addressed by our support team, and the discussion will remain confidential:

https://www.telerik.com/account/support-center/contact-us

I am looking forward to your reply. 

Regards,
Georgi
Progress Telerik

No answers yet. Maybe you can help?

Tags
Dialog
Asked by
Akash
Top achievements
Rank 1
Share this question
or