This is a migrated thread and some comments may be shown as answers.

DesktopAlertManager example

1 Answer 26 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
Veteran
n/a asked on 24 Feb 2021, 09:24 PM

Please provide a basic example (or a link to) of how to use the DesktopAlertManager.

I want to be able to display multiple alerts and stack them if they appear at the same time.

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Feb 2021, 09:24 AM
Hello, Craig,

DesktopAlertManager is basically responsible for setting the position of each alert when it is being created. Just before an alert is shown it gets registered by the alert manager and its coordinates are calculated depending on the screen settings and the other alerts which are already shown. It is not necessary to setup the manager in any appropriate way. Everything is being executed internally.

Here is a sample code snippet demonstrating how to display multiple RadDesktopAlerts simultaneously and they will be stacked one over another:
        int cnt = 1;

        private void radButton1_Click(object sender, EventArgs e)
        {
            RadDesktopAlert alert = new RadDesktopAlert();

            alert.ContentImage = Properties.Resources.envelope;
            alert.CaptionText = cnt + ".New E-mail Notification";
            alert.ContentText = "Hello Jack, I am writing to inform you " +
                                "that the planning meeting scheduled for Wednesday has been postponed and" +
                                "it will eventually be rescheduled, possibly for the next Tuesday";
            alert.Show();
            cnt++;
        }

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

Regards,
Dess | Tech Support Engineer, Sr.
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
n/a
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or