Pending Review
Last Updated: 15 Jul 2019 06:29 by QuizzBox
Created by: QuizzBox
Comments: 0
Category: DesktopAlert
Type: Bug Report
1

To reproduce:

private void RadButton1_Click(object sender, EventArgs e)
{
    Telerik.WinControls.UI.RadDesktopAlert _Alert = new Telerik.WinControls.UI.RadDesktopAlert();
    _Alert.CaptionText = "TEST ALERT";
    _Alert.ContentText = "This is my test content";
    _Alert.AutoSize = true;
    //RadDirection.Up bug when the screen is scaled (for example set creen scale at 150% => alert is cut, part of the window is not visible and the direction is still down)
    //Whereas RadDirection.Down seems to work fine
    _Alert.PopupAnimationDirection = Telerik.WinControls.UI.RadDirection.Down;
    _Alert.Show();
}

Completed
Last Updated: 06 Jul 2018 08:34 by Dimitar
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: DesktopAlert
Type: Bug Report
1
To reproduce: change to 150% DPI scaling and try to show a RadDesktopAlert. 

Workaround:

        bool isFirstTime = true;

        private void radButton1_Click(object sender, EventArgs e)
        {
            this.radDesktopAlert1.CaptionText = "New E-mail Notification";
            this.radDesktopAlert1.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";
            if (isFirstTime)
            {
                this.radDesktopAlert1.PopupAnimation = false;
                this.radDesktopAlert1.Show();
                this.radDesktopAlert1.Hide();
                this.radDesktopAlert1.Show(); 
                isFirstTime = false;
            }
            else
            { 
                this.radDesktopAlert1.Show();
            }
           
        }
Completed
Last Updated: 21 Jun 2018 14:07 by ADMIN
ADMIN
Created by: Dimitar
Comments: 0
Category: DesktopAlert
Type: Bug Report
0
To reproduce:
RadDesktopAlert oNotificacion = new RadDesktopAlert(this.components);
oNotificacion.FixedSize = new System.Drawing.Size(350, 150);
oNotificacion.CaptionText = "TITLE";
oNotificacion.ContentText = "Alert TEXT";
oNotificacion.ContentImage = this.pictureBox1.Image;

oNotificacion.Show();

Workaround:
oNotificacion.Popup.Image = this.pictureBox1.Image;
Completed
Last Updated: 06 Feb 2018 07:16 by ADMIN
To reproduce: 
- run the attached sample project
- click the 'show' button
- click the 'update text' button while the alert is shown. You will notice that the text is updated but the alert is now resized according to the new content.

Workaround: hide the alert and show it again in order to force recalculating the size. 

        Me.RadDesktopAlert1.PopupAnimation = False
        Me.RadDesktopAlert1.Hide()
        Me.RadDesktopAlert1.ContentText = Me.RadDesktopAlert1.ContentText & "Donec ornare, elit a lobortis luctus, mauris est interdum leo, eget malesuada ligula diam quis nunc."
        Me.RadDesktopAlert1.Show()
        Me.RadDesktopAlert1.PopupAnimation = True
Approved
Last Updated: 27 Aug 2017 14:22 by mostafa
Created by: mostafa
Comments: 6
Category: DesktopAlert
Type: Bug Report
1
When the ScreenPosition property of RadDesktopAlert is set to BottomRight in RightToLeft mode, it is shown in the center instead of in the right. Please refer to the attached sample project and attached screenshots.

Workaround:

 RadDesktopAlert rdAlert = new RadDesktopAlert();

 private void radButton1_Click(object sender, EventArgs e)
 {
     rdAlert.ContentText = "Sample text";
     rdAlert.ScreenPosition = AlertScreenPosition.BottomRight;
     rdAlert.ShowOptionsButton = false;
   
     rdAlert.FixedSize = new System.Drawing.Size(490, 135);
     rdAlert.Popup.LocationChanged += Popup_LocationChanged; 
     rdAlert.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     rdAlert.Show();
 }

 Point p = Point.Empty;

 private void Popup_LocationChanged(object sender, EventArgs e)
 {
     DesktopAlertPopup popup = sender as DesktopAlertPopup;
     if (p == Point.Empty)
     {
         p = popup.Location;
     }
     else
     { 
         rdAlert.Popup.LocationChanged -= Popup_LocationChanged;
         rdAlert.Popup.Location = p;
         rdAlert.Popup.LocationChanged += Popup_LocationChanged;
     }
 }

Completed
Last Updated: 20 Jul 2015 07:53 by ADMIN
Workaround: create custom alert and popup and override the InitializeDropDownAnimation, refer to the attached project
Approved
Last Updated: 29 Mar 2016 12:11 by ADMIN
Workaround: keep track of the alerts and their location

public partial class Form1 : Form
{
    private Point location;
    private Rectangle initialRect;
    private bool displaySettingsChanged;
    private RadDesktopAlert dAlert;
    private HashSet<RadDesktopAlert> alerts;

    public Form1()
    {
        InitializeComponent();

        this.initialRect = Screen.PrimaryScreen.WorkingArea;
        this.radDesktopAlert1.Popup.LocationChanged += Popup_LocationChanged;
        Microsoft.Win32.SystemEvents.DisplaySettingsChanged += SystemEvents_DisplaySettingsChanged;
    }

    private void Popup_LocationChanged(object sender, EventArgs e)
    {
        DesktopAlertPopup popup = sender as DesktopAlertPopup;
        RadDesktopAlert alert = this.alerts.Where(a => a.Popup == popup).FirstOrDefault();
        if ((alert.Popup.Location.X != this.location.X || alert.Popup.Location.Y != this.location.X) && this.displaySettingsChanged && Control.MouseButtons != MouseButtons.Left)
        {
            alert.Popup.Location = this.location;
        }
    }

    private void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e)
    {
        this.displaySettingsChanged = true;
        foreach (RadDesktopAlert alert in this.alerts)
        {
            this.AdjustPosition(alert);
        }
    }

    private void AdjustPosition(RadDesktopAlert alert)
    {
        Rectangle newRect = Screen.PrimaryScreen.WorkingArea;
        Point newLocation = DesktopAlertManager.Instance.GetAlertPopupLocation(alert);
        this.location = new Point(newLocation.X - (initialRect.Width - newRect.Width), newLocation.Y - (initialRect.Height - newRect.Height));
        alert.Popup.Location = this.location;
    }

    private void radButton1_Click(object sender, EventArgs e)
    {
        this.dAlert = new RadDesktopAlert();
        this.dAlert.PopupAnimationFrames = 1;
        this.dAlert.CanMove = false;
        this.dAlert.Show();

        if (this.alerts == null)
        {
            this.alerts = new HashSet<RadDesktopAlert>();
        }

        this.alerts.Add(this.dAlert);
        this.dAlert.Popup.LocationChanged += Popup_LocationChanged;
        if (this.displaySettingsChanged)
        {
            this.AdjustPosition(dAlert);
        }
    }
}
Approved
Last Updated: 29 Mar 2016 12:07 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: DesktopAlert
Type: Bug Report
0
To reproduce: use the following code:

RadDesktopAlert desktopAlert = new Telerik.WinControls.UI.RadDesktopAlert();

public Form1()
{
    InitializeComponent(); 
    
    desktopAlert.AutoClose = false;
    RadButtonElement radButtonElement = new RadButtonElement();
    radButtonElement.Click += RadDesktopAlertOkButtonClick;
    radButtonElement.Text = "OK";
    desktopAlert.ButtonItems.Add(radButtonElement); 
    desktopAlert.PopupAnimationDirection = RadDirection.Up;
    desktopAlert.PopupAnimationEasing = Telerik.WinControls.RadEasingType.InBack;

    BackgroundWorker bw = new BackgroundWorker();
    bw.DoWork += new DoWorkEventHandler(bw_DoWork);
    bw.RunWorkerAsync();
}

private void CreateAndShowAlert(string caption, string text)
{
    desktopAlert.CaptionText = caption;
    desktopAlert.ContentText = text;

    desktopAlert.Show();
}

void RadDesktopAlertOkButtonClick(object sender, EventArgs e)
{
    desktopAlert.Hide();
}

void bw_DoWork(object sender, DoWorkEventArgs e)
{
    int i = 0;
    while (true)
    {
        Thread.Sleep(1000);
        i++;
        MethodInvoker mi = new MethodInvoker(delegate() { this.CreateAndShowAlert("Alert " + i, "This is the " + i + "th alert"); });
        this.Invoke(mi);
    }
}

When I click the OK button, the DesktopAlert hides correctly, but after a few times (10 or more) the DesktopAlert stops appearing.

Workaround:

radDesktopAlert.Hide();
radDesktopAlert.Show();

or to switch off the animation:

radDesktopAlert.PopupAnimation = false;
Completed
Last Updated: 18 Nov 2016 12:53 by Jesse Dyck
ADMIN
Created by: Ivan Todorov
Comments: 1
Category: DesktopAlert
Type: Feature Request
14
There should be an option in RadDesktopAlert which allows it to size according to its content.
Completed
Last Updated: 24 Feb 2011 05:20 by ADMIN
ADMIN
Created by: Stefan
Comments: 0
Category: DesktopAlert
Type: Bug Report
2
FIX. RadDesktopAlert stays focused all the time, so using the Enter and the Backspace keys for example in an editor while the alert is shown causes the alert to close.
Completed
Last Updated: 05 Jun 2014 07:07 by Jesse Dyck
ADMIN
Created by: Nikolay
Comments: 1
Category: DesktopAlert
Type: Feature Request
3
One should be able to show a DesktopAlert at a custom position on the screen, defined by (x,y) coordinates.

READY FOR TEST