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
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;
privatevoidradButton1_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/.