This question is locked. New answers and comments are not allowed.
I have used the following code to create a date picker in my page
<% Html.RenderPartial("HLDatePickerView", new ViewDataDictionary
{
new KeyValuePair<string, object>("ControlStyle", Model.ControlStyle),
new KeyValuePair<string, object>("InitializeControlAction",
new Action<Telerik.Web.UI.RadDatePicker>(c=>
{
c.ID = "StartDate";
c.Calendar.Width= Unit.Pixel(250);
c.MinDate = new DateTime(1900,1,1);
c.Height=Unit.Pixel(15);
c.Width=Unit.Pixel(195);
})),
new KeyValuePair<string, object>("DateValue", Model.StartDate)
}); %>
And in another client side event i am updating the datepicker value as
$('#StartDate').val("03/29/2010");
The datepicker value is updated. But whenever the focus is set (manual mouseclick) to the raddatetime, the new date is replaced by the old date.
Please help
<% Html.RenderPartial("HLDatePickerView", new ViewDataDictionary
{
new KeyValuePair<string, object>("ControlStyle", Model.ControlStyle),
new KeyValuePair<string, object>("InitializeControlAction",
new Action<Telerik.Web.UI.RadDatePicker>(c=>
{
c.ID = "StartDate";
c.Calendar.Width= Unit.Pixel(250);
c.MinDate = new DateTime(1900,1,1);
c.Height=Unit.Pixel(15);
c.Width=Unit.Pixel(195);
})),
new KeyValuePair<string, object>("DateValue", Model.StartDate)
}); %>
And in another client side event i am updating the datepicker value as
$('#StartDate').val("03/29/2010");
The datepicker value is updated. But whenever the focus is set (manual mouseclick) to the raddatetime, the new date is replaced by the old date.
Please help