Last Updated: 07 Oct 2020 11:46 by ADMIN
Release R3 2020 SP1 (LIB 2020.3.1007)
George C.
Created on: 04 Aug 2020 05:18
Category: DesktopAlert
Type: Bug Report
RadDesktopAlert: when in RightToLeft mode and ScreenPosition = BottomRight the alert location is wrong


While working with the RadDesktopAlert, I found an issue (possibly a bug) in the following scenario :

When RightToLeft property of RadDesktopAlert is set to True, ScreenPosition property doesn't work properly as it is supposed to.

For example, setting ScreenPosition to BottomRight and RightToLeft property to True, the popup box doesn't start at BottomRight position. I attached a gif file that illustrates the issue. Here is the code I used in the test project :

Imports Telerik.WinControls
Imports Telerik.WinControls.UI
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim alert1 As New RadDesktopAlert
        alert1.AutoCloseDelay = 3
        alert1.AutoSize = True
        alert1.FadeAnimationFrames = 10
        alert1.FadeAnimationSpeed = 3
        alert1.Opacity = 0.85!
        alert1.PopupAnimationEasing = Telerik.WinControls.RadEasingType.OutExponential
        alert1.PopupAnimationFrames = 10
        If CheckBox1.Checked = True Then
            alert1.RightToLeft = System.Windows.Forms.RightToLeft.Yes
            alert1.RightToLeft = System.Windows.Forms.RightToLeft.No
        End If
        alert1.ScreenPosition = Telerik.WinControls.UI.AlertScreenPosition.BottomRight
        alert1.ShowOptionsButton = False
        alert1.ShowPinButton = False
        alert1.CaptionText = "Test Project"
        alert1.ContentText = "This is a test"
        alert1.PlaySound = True
        alert1.Popup.AlertElement.Font = New Font("Tahoma", 10, FontStyle.Regular)
        alert1.Popup.AlertElement.ContentElement.Font = New Font("Tahoma", 10, FontStyle.Regular)
    End Sub
End Class


Best Wishes,

Thanks for your attention.

Attached Files:
1 comment
Nadya | Tech Support Engineer
Posted on: 06 Aug 2020 16:27

Hello, George,

Thank you for reporting this. After test this on my end I was able to observe the same behavior.

I have logged this issue in our Feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes, and add your comments on the following link - feedback item.

I have also updated your Telerik Points.

To work around this issue you can subscribe to PopupOpening event and set CustomLocation property:

AddHandler alert1.Popup.PopupOpening, AddressOf alert1_PopupOpening
Private Sub alert1_PopupOpening(sender As Object, args As CancelEventArgs)
    Dim arg = TryCast(args, RadPopupOpeningEventArgs)
    arg.CustomLocation = New Point(1951, 967)
End Sub

I hope this helps. Should you have other questions do not hesitate to contact me.

Progress Telerik