RadInputManager DisplayDateFormat not applied after AJAX postback

4 posts, 1 answers
  1. ADH
    ADH avatar
    45 posts
    Member since:
    Nov 2006

    Posted 19 Jan 2009 Link to this post

    I end up with the date and time in a textbox which is supposed to contain only the date. To reproduce this problem, the following code is handy - hit submit and the time will appear in the textboxes, and will vanish when the user clicks each textbox. I should note that this is using the latest version of RadControls as of this date, 2008.3.1314.20.

    <%@ Page Language="C#" AutoEventWireup="true" Codebehind="Test1.aspx.cs" Inherits="Testing.Test1" %> 
    <%@ 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 runat="server">  
       <title>Untitled Page</title> 
       <form id="form1" runat="server">  
             <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
             <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
             <asp:TextBox ID="TextBox1" runat="server" /><br /> 
             <asp:TextBox ID="TextBox2" runat="server" /><br /> 
             <asp:TextBox ID="TextBox3" runat="server" /><br /> 
             <asp:TextBox ID="TextBox4" runat="server" /><br /> 
             <asp:TextBox ID="TextBox5" runat="server" /><br /> 
             <telerik:RadInputManager ID="RadInputManager1" runat="server">  
                <telerik:DateInputSetting Culture="English (United States)" DateFormat="MM/dd/yyyy" 
                   DisplayDateFormat="MM/dd/yyyy" SelectionOnFocus="SelectAll" MinDate="1920-01-01">  
                      <telerik:TargetInput ControlID="TextBox1" /> 
                      <telerik:TargetInput ControlID="TextBox2" /> 
                      <telerik:TargetInput ControlID="TextBox3" /> 
                      <telerik:TargetInput ControlID="TextBox4" /> 
                      <telerik:TargetInput ControlID="TextBox5" /> 
             <input type="button" onclick="fnPostBack();" value="Submit" /> 
             <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
                <script type="text/javascript">  
                      function fnPostBack() {  
                         $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("Test");  

    And the code-behind:
    1 using System;  
    2 using System.Data;  
    3 using System.Configuration;  
    4 using System.Collections;  
    5 using System.Web;  
    6 using System.Web.Security;  
    7 using System.Web.UI;  
    8 using System.Web.UI.WebControls;  
    9 using System.Web.UI.WebControls.WebParts;  
    10 using System.Web.UI.HtmlControls;  
    12 namespace Testing  
    13 {  
    14    public partial class Test1 : System.Web.UI.Page  
    15    {  
    16       protected void Page_Load(object sender, EventArgs e)  
    17       {  
    18          TextBox1.Text = DateTime.Now.ToString();  
    19          TextBox2.Text = DateTime.Now.ToString();  
    20          TextBox3.Text = DateTime.Now.ToString();  
    21          TextBox4.Text = DateTime.Now.ToString();  
    22          TextBox5.Text = DateTime.Now.ToString();  
    23       }  
    24    }  
    25 }  
  2. Answer
    Rosen avatar
    3253 posts

    Posted 22 Jan 2009 Link to this post

    Hello ADH,

    Indeed I'm able to observed the described behavior. I have passed this to our developers for further investigation. Meanwhile you may consider temporary set the InputManager as updated control and set the input setting's InitializeOnClient to true.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. MARS-Carl
    MARS-Carl avatar
    1 posts
    Member since:
    Nov 2008

    Posted 24 Sep 2009 Link to this post

    Hi Telerik,

    Is there any more progress on this thread, I am using build version 2009.1.527.35 and still experiencing this exact same problem.


  4. Tsvetoslav
    Tsvetoslav avatar
    1823 posts

    Posted 29 Sep 2009 Link to this post

    Hello Carl,

    The problem has been fixed and will be available in the latest internal build which you can download from your customer's account. Excuse us for having missed out of sight this issue for such a long time.

    Thanks for the understanding.

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