Can't close DesktopAlert with opened modal form

1 Answer 124 Views
DesktopAlert
Martin
Top achievements
Rank 1
Martin asked on 02 Dec 2021, 08:35 AM

Hello,

I have problem wit DesktopAlert control. We use it as notification popup and it works great. I can close on click all popups until I create new modal form on top of current form. Then I can close only newly created alerts, but old alerts stay there and cant be closed until modal form is closed. Is there solution to make closable all alerts at all time? Problem is that alerts can obfuscate UI of new modal form and I cant then close this form and there is no solution.

Here is sample project which simulate this problem.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Dec 2021, 12:08 PM
Hello, Martin, 

The provided sample project is greatly appreciated. Note that when you have a modal dialog, it keeps the focus until you close this dialog. All other dialogs or popups shown after the modal dialog is displayed can detect the mouse interaction and can be closed respectively. But for those alerts that are beneath the modal dialog, the mouse can't be detected. This behavior is kind of expected.  

The possible solution that I can suggest is to close programmatically the shown alerts before showing the modal dialog. Alternatively, you can use one common RadDesktopAlert instead of creating a new instance each time. Thus, before showing a the RadDesktopAlert, you will hide the previous one. Feelfree to use this approach which suits your requirements best.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DesktopAlert
Asked by
Martin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or