Hi all,
I wonder if there's a fix with this issue.
After upgrading Telerik ASP.Net AJAX Q3 2009 from Q1 2009, there is an issue with RadDateInput with EmptyMessage attribute. Here's the code snippet.
When the RadDateInput has empty value, it's the following bug. Here's the step to reproduce.
I can get rid of this issue by removing EmptyMessage attribute. But I need to put the EmptyMessage value back eventually.
Thanks in advance.
I wonder if there's a fix with this issue.
After upgrading Telerik ASP.Net AJAX Q3 2009 from Q1 2009, there is an issue with RadDateInput with EmptyMessage attribute. Here's the code snippet.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> |
<!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 runat="server"> |
<title></title> |
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
<Scripts> |
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
</Scripts> |
</telerik:RadScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
</telerik:RadAjaxManager> |
<div> |
<telerik:RadDateInput ID="RadDateInputDOB" runat="server" Skin="WebBlue" |
Culture="en-US" MinDate="01/01/1900" MaxDate="12/31/2999" MaxLength="10" |
DisplayDateFormat="MM/dd/yyyy" |
EmptyMessage = "MM/DD/YYYY" |
DateFormat="MM/dd/yyyy" Width="120px"> |
</telerik:RadDateInput> |
</div> |
<asp:Button ID="Button1" runat="server" Text="Button" /> |
</form> |
</body> |
</html> |
When the RadDateInput has empty value, it's the following bug. Here's the step to reproduce.
- Leave RadDateInputDOB without value.
- Press Button1 and return to the same page.
- Wait the page is refreshed. I notice RadDateInputDOB display changes from greyed to black, indicating there's value.
- Click RadDateInputDOB. Notice the value becomes 0NaN/0NaN/0NaN.
- When RadDateInput is out of focus, the vlaue becomes 12/31/1998, not blank.
I can get rid of this issue by removing EmptyMessage attribute. But I need to put the EmptyMessage value back eventually.
Thanks in advance.