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

RadNotification.Width = "95%" - how do I do this?

2 Answers 89 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 23 Jul 2012, 05:47 PM
I need to set a RadNotification.Width to a percent - e.g. 95% from the code.behind.  It appears to only allow an integer here - yet on the client-side I can set the width quite easily to 95%.  Unfortunately in my scenario I need to set this in the server-side code...

Any ideas?  

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 24 Jul 2012, 03:30 AM
Hi Dan,

Try the following code snippet to set the RadNotification width in percentage.

C#:
RadNotification1.Width = Unit.Percentage(95);

Hope this helps.

Regards,
Princy.
0
Dan
Top achievements
Rank 1
answered on 24 Jul 2012, 02:30 PM
Thank you Princy.
Tags
Notification
Asked by
Dan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dan
Top achievements
Rank 1
Share this question
or