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

3 posts, 1 answers
  1. Dan
    Dan avatar
    124 posts
    Member since:
    Feb 2011

    Posted 23 Jul 2012 Link to this post

    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. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan
    Dan avatar
    124 posts
    Member since:
    Feb 2011

    Posted 24 Jul 2012 Link to this post

    Thank you Princy.
Back to Top