This is a migrated thread and some comments may be shown as answers.

Possible RadDateInput bug with EmptyMessage attribute?

6 Answers 84 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ken Wong
Top achievements
Rank 1
Ken Wong asked on 04 Dec 2009, 11:06 PM
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.

<%@ 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.
  1. Leave RadDateInputDOB without value.
  2. Press Button1 and return to the same page.
  3. Wait the page is refreshed.  I notice RadDateInputDOB display changes from greyed to black, indicating there's value.
  4. Click RadDateInputDOB.  Notice the value becomes 0NaN/0NaN/0NaN.
  5. 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.

6 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Dec 2009, 09:46 AM
Hello Ken Wong,

Thank you for letting us know about this problem. Indeed, we reproduced the issue, found the cause and fixed it. Changes will take effect in the Q3 2009 SP1 release, which will be released later this week.

I have updated your Telerik points. Thanks again.


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Veronica
Top achievements
Rank 1
answered on 06 Oct 2010, 06:28 PM
Hello,
I am using version 2010.1.309.20 and still having the same exact issue.  If invalid data is entered in RadDateInput field and the form is submitted, after clicking on the textbox, 0NaN/0NaN/0NaN is displayed in the textbox.  When focus is moved from the textbox, the value is automatically set to 12/31/1998.

Thanks,
Veronica
0
Ken Wong
Top achievements
Rank 1
answered on 06 Oct 2010, 07:32 PM
I recalled that Telerik has fixed this issue in subsequent release.  And RadDateInput also made subtle change in behavior too.  I don't remember the detail, but that subtle change made me very uncomfortable. 

Eventually we change the user requirement and render this bug a non-issue.  I suggest you do the same thing. 
0
Dimo
Telerik team
answered on 11 Oct 2010, 03:12 PM
Hi Veronica,

The issue is fixed and I can't reproduce it neither with the specified RadControls version, nor with the latest one. Can you provide a standalone demo?

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Veronica
Top achievements
Rank 1
answered on 19 Oct 2010, 03:27 PM
Hello,
Thank you.  I submitted a ticket with the code attached to it, ticket IDis 358628.

Here is the description of the issue:  If invalid date is entered (enter some letters), then tab out (textbox becomes red and a yellow triangle with ! appears), then click Submit.  Click in the textbox and value of the textbox becomes 0NaN/0NaN/0NaN; tab out and value becomes 12/31/1998.

Thanks again,
Veronica
0
Dimo
Telerik team
answered on 20 Oct 2010, 01:29 PM
Hi Veronica,

Please upgrade to RadControls Q1 2010 SP2 (2010.1.519) or later. Q1 2010 SP2 is the first version, which has the bug fixed. Sorry about the misleading information provided previously.

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Input
Asked by
Ken Wong
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Veronica
Top achievements
Rank 1
Ken Wong
Top achievements
Rank 1
Share this question
or