Hi, I'm trying to use a RadDatePicker inside a Repeater. In the ItemDataBound event, I want to get a reference to the RadDatePicker. However, when I do this:
RadDatePicker dtStart = item.FindControl("dtStart") as RadDatePicker;
I get this error:
Cannot convert type 'System.Web.UI.Control' to 'Telerik.Web.UI.Skins.RadDatePicker' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
I know I've done something similar when the RadDatePicker is inside an edit template of a RadGrid. Is there anyway to accomplish this?