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

Dynamically changing the width of RadDatePicker Textbox

1 Answer 201 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Owen
Top achievements
Rank 1
Owen asked on 23 May 2013, 05:00 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 24 May 2013, 04:13 AM
Hi Owen,

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

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

Thanks,
Princy.
Tags
Calendar
Asked by
Owen
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or