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

Auto-Height?

3 Answers 181 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Ludwig
Top achievements
Rank 1
Ludwig asked on 30 Jun 2015, 09:09 AM

Hello!

 

Is there a possibility to set the height to auto for the alerts? I can set double.NaN to the height programmatically, but in this case some alerts are overlapping others.

kind regards!

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 01 Jul 2015, 11:56 AM
Hello Ludwig,

With the current implementation of the control there should be a Height initially set to a particular number in order for the Alert be positioned correctly on the screen. However can you please share some more details regarding the exact user case? We will consider supporting such scenario for the official release of RadDesktopAlert. Also any additional feedback on the current features of the control and on any desired ones would be highly appreciated.

I'm looking forward to hearing from you.

Regards,
Kalin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ludwig
Top achievements
Rank 1
answered on 02 Jul 2015, 04:58 PM

Hello!

 I am using the DesktopAlert to show some information to the users (for example a save-ok-message). In some cases the message could be more than 3 lines, for example you can see my problem in following code:

 

var alert = new RadDesktopAlert();alert.Header = "Test Message";alert.Content = "test1 \r\n test2 \r\n test3 \r\n test4 \r\n test5";alert.ShowDuration = 10000;RadDesktopAlertManager manager = new RadDesktopAlertManager(AlertScreenPosition.TopRight);manager.ShowAlert(alert);

var alert = new RadDesktopAlert();
alert.Header = "Test Message";
alert.Content = "test1 \r\n test2 \r\n test3 \r\n test4 \r\n test5";
alert.ShowDuration = 10000;
RadDesktopAlertManager manager = new RadDesktopAlertManager(AlertScreenPosition.TopRight);
manager.ShowAlert(alert);

 

In this case I only see 3 lines (test1, test2 and test3) in the alert.

I tried to set the Height of the alerts to double.NaN, but it seems that something in the control uses the height-property instead of the actualheight-property, so in this case the messages overlap others and "do not know where to go". I hope my explanation is understandable.

 

Is there a possible workaround for this problem?

 

kind regards

 

0
Masha
Telerik team
answered on 07 Jul 2015, 08:03 AM
Hello Ludwig,

I'm afraid the desired approach is not supported in current version of RadDesktopAlert. I can suggest you modifying the RadDeskotpAlert control template and adding a ScrollViewer in it. Please note you still need to add Height property for RadDesktopAlert style in order the RadDesktopAlert to be properly positioned.

I've created a sample project which demonstrates this approach where the ScrollViewer is customized for the VisualStudio2013 theme.

I hope this helps.

Regards,
Masha
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DesktopAlert
Asked by
Ludwig
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Ludwig
Top achievements
Rank 1
Masha
Telerik team
Share this question
or