Hi,
I am putting a "RadDateTimePicker" on a page, and I am also setting the MinDate and MaxDate to DateTime.MinValue and DateTime.MaxValue. After doing all these settings, I am able to select date less than 1980(default MinDate for RadDateTimePicker.) and it is saving fine. But I am selecting the date with year greater than 2100, it is giving warning icon on the UI. Though it is saving. Please see the screenshot attached.
I checked following post, and telerik's demo that is attached with the same is working.
http://www.telerik.com/community/forums/aspnet/calendar/raddatepicker-not-taking-the-value-from-kebord.aspx
Then I checked the dll versions, in which I found that it is working with version no. = "2010.2.826.40" but we are having dll with version no. = "2009.02.0701.20", which we cannot change currently.
So is there any work-around for fixing this issue?
The code is as following:
.aspx code
.cs code
web.config file
Waiting for a quick reply.
I am putting a "RadDateTimePicker" on a page, and I am also setting the MinDate and MaxDate to DateTime.MinValue and DateTime.MaxValue. After doing all these settings, I am able to select date less than 1980(default MinDate for RadDateTimePicker.) and it is saving fine. But I am selecting the date with year greater than 2100, it is giving warning icon on the UI. Though it is saving. Please see the screenshot attached.
I checked following post, and telerik's demo that is attached with the same is working.
http://www.telerik.com/community/forums/aspnet/calendar/raddatepicker-not-taking-the-value-from-kebord.aspx
Then I checked the dll versions, in which I found that it is working with version no. = "2010.2.826.40" but we are having dll with version no. = "2009.02.0701.20", which we cannot change currently.
So is there any work-around for fixing this issue?
The code is as following:
.aspx code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RADDateTimePicker_Telerik_Post.aspx.cs" Inherits="TelerikPlayGround.RADDateTimePicker_Telerik_Post" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadDateTimePicker ID="dateTimePicker" runat="server" > </telerik:RadDateTimePicker> <asp:Button runat = "server" ID= "btnOK" OnClick="btnOK_Click" Text = "OK" /> <br /> Control value : <asp:Label runat="server" ID="lblDate" Text=""></asp:Label> </div> </form></body></html>.cs code
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace TelerikPlayGround{ public partial class RADDateTimePicker_Telerik_Post : System.Web.UI.Page { protected void Page_Load( object sender, EventArgs e ) { if ( !Page.IsPostBack ) { this.dateTimePicker.MinDate = DateTime.MinValue; this.dateTimePicker.MaxDate = DateTime.MaxValue; } } protected void btnOK_Click( object sender, EventArgs e ) { this.lblDate.Text = this.dateTimePicker.SelectedDate.ToString(); } }}web.config file
<?xml version="1.0"?><!-- For more information on how to configure your ASP.NET application, please visit --><configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <httpHandlers> <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" /> <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" /> <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false" /> <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> </httpHandlers> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer></configuration>Waiting for a quick reply.