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

[Solved] Raddatepicker

1 Answer 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 29 Sep 2009, 03:18 PM
Hi,

I've the below code in my ascx:

 

<telerik:RadDatePicker ID="m_radStartDatePicker"

 

 

runat="server" Height="16px" style="margin-bottom: 0px"

 

 

Width="125px" TabIndex="3">

 

 

<DateInput Height="16px" runat="server" TabIndex="3">

 

 

</DateInput>

 

 

<Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"

 

 

ViewSelectorText="x" runat = "server">

 

 

</Calendar>

 

 

<DatePopupButton HoverImageUrl="" ImageUrl="" TabIndex="3" />

 

 

</telerik:RadDatePicker>

1) Now, I need to disable previous dates(all dates from today's date) in the calendar.

2) for eg: today is sept 29 th 2009, I should have disabled till sep 28th 2009 so user cannot select any dates in the past.
How can i do this.

Pls help me with code .
Thanks&Regards,
Zaheka Razak

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Sep 2009, 05:56 AM
Hello Zaheka,

You can set the MinDate property of the DatePicker to the current date so that the previous dates would be disabled.
c#:
RadDatePicker1.MinDate = DateTime.Now;

Thanks
Princy.
Tags
General Discussions
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or