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

Manual Position

1 Answer 166 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Kashif
Top achievements
Rank 1
Kashif asked on 23 Sep 2019, 03:55 PM

Dear Admins,

I want to Show the Desktop alert specific position on the screen

Like I have a Parent Form which covers the full screen. A Child form is Called from the Parent as ShowDialog.

The requirement is to Display the Alert on the Location of Child Form (Bellow the Tittle Bar of Child Form). the width of Alert will be Equal to the Width of Form.

 

How can i achieve this behavior.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 24 Sep 2019, 06:00 AM

Hello Muhammad,

To achieve this set the ScreenPosition and then the Location of the popup. Here is an example:

private void RadButton1_Click(object sender, EventArgs e)
{
    var radDesktopAlert1 = new RadDesktopAlert();
   
    radDesktopAlert1.CaptionText = "New E-mail Notification";
    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";
    radDesktopAlert1.ScreenPosition = AlertScreenPosition.Manual;
    radDesktopAlert1.Popup.Location = new Point(300, 300);
    radDesktopAlert1.Show();
}

I hope this helps.  

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DesktopAlert
Asked by
Kashif
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or