Hello ALL,
I have used RadDatePicker into my web page, Now i want to restrict feature date selection to user.
So i had set the max date property as today's date from code behind.it's working properly, user can't able to select feature date from calender.
In case if user try to add feature date manually, then date picker highlighted with warning symbol with yellow color.
But when i click on save button and checked Page.IsValid property, it will always give me true and i got the date picker selected value as null.
How can i validate RadDatePicker for feature date? Please help me.
Here is my code :
aspx :
<telerik:RadDatePicker ID="dpCompletedDate" Calendar-ShowRowHeaders="false"
Skin="Office2007" runat="server" />
Page Load cs :
dpCompletedDate.MaxDate = System.DateTime.Now;
I have used RadDatePicker into my web page, Now i want to restrict feature date selection to user.
So i had set the max date property as today's date from code behind.it's working properly, user can't able to select feature date from calender.
In case if user try to add feature date manually, then date picker highlighted with warning symbol with yellow color.
But when i click on save button and checked Page.IsValid property, it will always give me true and i got the date picker selected value as null.
How can i validate RadDatePicker for feature date? Please help me.
Here is my code :
aspx :
<telerik:RadDatePicker ID="dpCompletedDate" Calendar-ShowRowHeaders="false"
Skin="Office2007" runat="server" />
Page Load cs :
dpCompletedDate.MaxDate = System.DateTime.Now;