Completed
Last Updated: 06 Dec 2013 15:25 by ADMIN
Alex
Created on: 04 Oct 2013 12:37
Category: Calendar
Type: Bug Report
0
RadDateTimePicker renders incorrect SelectedDate after second time assigning it.
Telerik.Web.UI. Version: 2013.2.611.40
Try the code below with a simple aspx page:
<asp:ScriptManager runat="server"/>
<telerik:RadDateTimePicker runat="server" ID="DatePicker" />

the code is:
		protected void Page_Load(object sender, EventArgs e)
		{
			DatePicker.SkipMinMaxDateValidationOnServer = true;
			DatePicker.MinDate = DateTime.Parse("01.01.2014");
			DatePicker.SelectedDate = DateTime.Parse("01.01.2013");
			DatePicker.SelectedDate = DateTime.Parse("01.01.2015");
		}

Actual result: 
Browser shows 01.01.2013 date marked in red but not 01.01.2015 as it supposes to show
1 comment
ADMIN
Deyan Enchev
Posted on: 16 Oct 2013 15:22
Our development department is currently working on a fix for this issue. Until it is ready you can use the following javascript as a workaround:

Telerik.Web.UI.RadDateInput.prototype.get_outOfRangeDate = function () { 
    return this._value ? null : this._outOfRangeDate; 
}