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

Problem with radgrid

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
VS
Top achievements
Rank 1
VS asked on 05 Sep 2008, 11:16 AM
Hi,
I have a RadGrid with GridDateTimeColumn as below.
<rad:GridDateTimeColumn DataField="EndDate" UniqueName="EndDate" EditFormColumnIndex="0" DataFormatString="{0:d}" meta:resourcekey="GridTemplateColumnResource2">
                    <HeaderStyle Font-Bold="true" />
                </rad:GridDateTimeColumn>   

How can i make the user not to select a date which is behind todays date from the DatePicker or calendar?
The user should not be allowed to insert manually or type in the date also into the dateinput.
Ie: Today is 05/09/2008. And i dont want the user to select any date on or before 04/09/2009.
Can those dates be disabled in the calendar?
Regards
Sujith

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Sep 2008, 07:00 AM
Hi Sujith

You can use the RadDatePicker.MinDate property to disable dates prior to the current date like this:

RadDatePicker1.MinDate = DateTime.Today.AddDays(-1) 


Thanks,
Princy
Tags
Grid
Asked by
VS
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or