hi im using a radcalender as mentioned below.
on page load im seting the mindate as sysdate to the calender.
but my requirement is, i should allow user to select date only greater than sysdate, that's i made min date at page load. but i also show the date selected by user on edititng even thought the date is less than sysdate. i struck with this please help me.
<
telerik:RadDatePicker
ID
=
"radPublishDate"
runat
=
"server"
Style="margin-left: 0px;
z-index: 11000000000000;"
ClientEvents-OnPopupOpening
=
"PopupOpening"
Height
=
"12px"
Width
=
"100px"
Culture
=
"English (United States)"
Skin
=
"Office2007"
EnableMultiSelect
=
"false"
>
<
DateInput
ID
=
"publishDateInput"
runat
=
"server"
Height
=
"14px"
DateFormat
=
"MM/dd/yyyy"
DisplayDateFormat
=
"MM/dd/yyyy"
>
</
DateInput
>
<
Calendar
ID
=
"Calendar1"
Skin
=
"Office2007"
UseColumnHeadersAsSelectors
=
"False"
runat
=
"server"
UseRowHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
ToolTip
=
"Select Date"
ShowRowHeaders
=
"false"
>
</
Calendar
>
<
DatePopupButton
HoverImageUrl
=
""
ImageUrl
=
""
/>
</
telerik:RadDatePicker
>
on page load im seting the mindate as sysdate to the calender.
radPublishDate.MinDate = DateTime.Now,
it is all works fine, but when the databinding happends, a date less than the sysdate when i try to assign as the selected date it throws an error.
If
Not
IsDBNull(dtNotesInfo.Rows(0).Item(2))
Then
radPublishDate.SelectedDate =
CType
(dtNotesInfo.Rows(0).Item(2), DateTime)
'Confidential date
End
If