Problem with DatePicker Q1 2012 Release

9 posts, 0 answers
  1. RvdGrint
    RvdGrint avatar
    112 posts
    Member since:
    May 2011

    Posted 21 Feb 2012 Link to this post

    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



  2. RvdGrint
    RvdGrint avatar
    112 posts
    Member since:
    May 2011

    Posted 21 Feb 2012 Link to this post

    Has nobody noticed this problem?

    Regards,
      Jos Meerkerk
  3. Vasil
    Admin
    Vasil avatar
    1638 posts

    Posted 22 Feb 2012 Link to this post

    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 >>
  4. RvdGrint
    RvdGrint avatar
    112 posts
    Member since:
    May 2011

    Posted 22 Feb 2012 Link to this post

    Vasil,

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

    Regards, 
      JosM
  5. Vasil
    Admin
    Vasil avatar
    1638 posts

    Posted 22 Feb 2012 Link to this post

    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.
  6. Arunas Tamulis
    Arunas Tamulis avatar
    2 posts
    Member since:
    Jan 2010

    Posted 03 Apr 2012 Link to this post

    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.
  7. Vasil
    Admin
    Vasil avatar
    1638 posts

    Posted 03 Apr 2012 Link to this post

    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.
  8. kasi
    kasi avatar
    29 posts
    Member since:
    May 2011

    Posted 07 May 2012 Link to this post

    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.
  9. Vasil
    Admin
    Vasil avatar
    1638 posts

    Posted 07 May 2012 Link to this post

    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.
Back to Top