The Editor Templates for Date, DateTime, and Time included with the Q1 2011 (2011.1.315) release include the following method call:
.HtmlAttributes(new { id = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty) + "_wrapper"})
This renders an invalid ID (under our model scenario, the ID ends up containing periods instead of underscores, since it is driving off the name attribute.
A dev I work with changed the editor templates to look like the following:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DateTime?>" %>
<%
string projectedGeneratedId = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty).Replace('.', '_');
%>
<%= Html.Telerik().DatePicker()
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
.HtmlAttributes(new { id = String.Format("{0}_wrapper", projectedGeneratedId) })
.Value(Model > DateTime.MinValue? Model : DateTime.Today)
%>
Does that make sense?
David