Dynamically changing the width of RadDatePicker Textbox

2 posts, 1 answers
  1. Owen
    Owen avatar
    6 posts
    Member since:
    Feb 2013

    Posted 23 May 2013 Link to this post

    Hi,

    Is it possible to change the width of the RadDatePicker Textbox within asp.net code-behind (c#)?

    I'm using this to set the default width:

    Div.RadDatePicker .riTextBox {
    width: 150px !important;
    }


    I want to be able to change it during runtime.

    Thanks.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 May 2013 Link to this post

    Hi Owen,

    Try the following C# code to set the width of RadDatePicker dynamically.

    C#:
    RadDatePicker1.Width = Unit.Pixel(700);

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top