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

Problem with DatePicker Q1 2012 Release

8 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
RvdGrint
Top achievements
Rank 1
RvdGrint asked on 21 Feb 2012, 08:48 AM
Hello,

after updating the ASP.Net controls from Q3 2011 to Q1 2012 the following problem occured;
When disabling the RadDatePicker and hide the DatePopupButton the display of the date is a litlle bit unexpected :-). If the DatePopupButton stays vsible everything works fine but when visible is false than there's my problem.

.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.PanelBar_Default" %>
 
<%@ Register Src="~/PanelBar/WebUserControl.ascx" TagName="ucpb" TagPrefix="usercpb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
  <title></title>
  <style type="text/css">
     
  </style>
  <script type="text/javascript">
  </script>
</head>
<body>
  <form id="form1" runat="server">
  <telerik:RadScriptManager ID="ScriptManager1" runat="server">
  </telerik:RadScriptManager>
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
  </telerik:RadAjaxManager>
  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook">
  </telerik:RadAjaxLoadingPanel>
  <telerik:RadScriptBlock ID="ScriptBlock1" runat="server">
    <script type="text/javascript">
    </script>
  </telerik:RadScriptBlock>
  <telerik:RadAjaxPanel runat="server" ID="rapHourControl" LoadingPanelID="RadAjaxLoadingPanel1">
    <div style="width: 100px;">
      <telerik:RadDatePicker runat="server" ID="rdpDate" Skin="Windows7" Width="100px"
        TabIndex="2" DatePopupButton-TabIndex="-1">
        <DateInput ID="rdpDateInput" runat="server" EmptyMessage="Required">
          <EmptyMessageStyle BackColor="#FFF1F1" Font-Italic="True" ForeColor="Red" />
          <FocusedStyle BackColor="#CCFFCC" />
        </DateInput>
      </telerik:RadDatePicker>
    </div>
  </telerik:RadAjaxPanel>
  </form>
</body>
</html>

aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using Telerik.Web.UI;
using System.Data;
 
namespace WebApplication1
{
  public partial class PanelBar_Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      rdpDate.Enabled = false;
      rdpDate.DatePopupButton.Visible = false;
    }
 
    protected override void OnInit(EventArgs e)
    {
      base.OnInit(e);
 
      rdpDate.SelectedDate = DateTime.Now;
    }
  }
}

Anyone?

Regards,
  Jos Meerkerk



8 Answers, 1 is accepted

Sort by
0
RvdGrint
Top achievements
Rank 1
answered on 21 Feb 2012, 11:52 PM
Has nobody noticed this problem?

Regards,
  Jos Meerkerk
0
Vasil
Telerik team
answered on 22 Feb 2012, 10:03 AM
Hi Jos Meerkerk,

Thank you very much for your feedback.  We replicated the problem and we are currently working on a fix for this. It looks to be some browser behavior problem in IE9, since it works correct in other browsers.

There is difference in the layout of RadDatePicker when there is visible button and when there is not. In first case a table is rendered and the button is in the second cell. And in the second case no table is used. And in this case the IE9 has some issue with applying the line-height, and the value of the input is not hidden properly. Which causes the formatted text and validation value to be shown in the same time.
Actually it can be replicated in much simpler scenario like:
<telerik:RadDateInput runat="server" SelectedDate="2012/05/05" Enabled="false">
</telerik:RadDateInput>

Kind regards,
Vasil
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
RvdGrint
Top achievements
Rank 1
answered on 22 Feb 2012, 10:33 AM
Vasil,

was this a know bug or was my post new to you (and Telerik)?

Regards, 
  JosM
0
Vasil
Telerik team
answered on 22 Feb 2012, 04:13 PM
Hi JosM,

Indeed this was not known issue, and you are the one who report it first, so I am updating your telerik points. Thank you one more time for your feedback.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Arunas Tamulis
Top achievements
Rank 1
answered on 03 Apr 2012, 06:33 AM
Hi, I'm having similar problem after upgrade from 2011Q3 to 2012Q1. Moreover, when printing, the dates are collapsed. I've atached printscreens before (how it looks on a browser) and after printing (how it looks on a paper). Tried adding CSS classes ( ._Telerik_IE9 .riSingle .RadPicker ) to stylesheet, but with no luck. The printing problem appears only in IE9.
0
Vasil
Telerik team
answered on 03 Apr 2012, 06:40 AM
Hello Arunas,

Try the latest internal build, we have already fixed this issue.

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
kasi
Top achievements
Rank 1
answered on 07 May 2012, 02:45 PM
Hi,
Regarding Problem with Datepicker in Q1 2012 , you given a  hot fix link in Previous post. but its having only for Q1 2011. Is both same?.
Please Let me know i am also having the same issue.
0
Vasil
Telerik team
answered on 07 May 2012, 02:59 PM
Hello kasi,

Q1 2012 is not the same as Q1 2011.

After going to the latest internal builds page. Select RadControls for ASP.NET AJAX from the first dropdown.
And from the second dropdown select: 2012.1.
Then you will see link for Telerik.Web.UI_2012_1_501_Dev_hotfix. and this is what you are looking for.

Kind regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
RvdGrint
Top achievements
Rank 1
Answers by
RvdGrint
Top achievements
Rank 1
Vasil
Telerik team
Arunas Tamulis
Top achievements
Rank 1
kasi
Top achievements
Rank 1
Share this question
or