I have been trying to get this to work forever now.. is there something that I am just not seeing.
I am trying to set the max date from the code behind and it's just not cooperating... yet everything else is.
Here's the code behind in the item_created method:
any ideas would be great... basically it can figure out that the date is too large if you pick past the date, but when the calendar pops up, the dates past today are not grayed out... If I set the max date manually in the markup, it works fine.
please let me know if you need any more info.
Thanks,
Dustin
I am trying to set the max date from the code behind and it's just not cooperating... yet everything else is.
Here's the code behind in the item_created method:
if
(e.Item
is
GridEditFormItem && e.Item.IsInEditMode)
{
GridEditFormItem dataItem = e.Item
as
GridEditFormItem;
TableCell cell = dataItem[
"InspectionDate"
];
RadDatePicker rdp = cell.Controls[0]
as
RadDatePicker;
rdp.Calendar.UseColumnHeadersAsSelectors =
false
;
rdp.Calendar.UseRowHeadersAsSelectors =
false
;
rdp.MaxDate = DateTime.Now;
}
any ideas would be great... basically it can figure out that the date is too large if you pick past the date, but when the calendar pops up, the dates past today are not grayed out... If I set the max date manually in the markup, it works fine.
please let me know if you need any more info.
Thanks,
Dustin