RadDatePicker: No calendar popup after partial postback in UpdatePanel

5 posts, 0 answers
  1. Warren
    Warren avatar
    4 posts
    Member since:
    Apr 2009

    Posted 06 Apr 2009 Link to this post

    I've boiled this down to a very simple scenario, so it's probably me misunderstanding the intended usage. I see the problem on the following setup:
    Dev environment: VS2008 on Vista Business / running application locally on "Cassini"
    RadControls: ASP.NET Ajax v. 2.2.7
    Browsers: IE8 and Fx 3.0.5

    I have a RadDatePicker inside an UpdatePanel. After a partial postback, the calendar popup no longer works. This is part of a large application, but the problem occurs with just the following ASPX code (no modifications to the code file):

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cal-Text.aspx.cs" Inherits="Cal_Text" %> 
    <%@ Register TagPrefix="Rad" Namespace="Telerik.WebControls" Assembly="RadInput.Net2" %> 
    <%@ Register TagPrefix="Rad" Namespace="Telerik.WebControls" Assembly="RadCalendar.Net2" %> 
     
    <!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> 
    </head> 
    <body> 
        <form id="form1" runat="server"
        <div> 
        <asp:ScriptManager ID="uxScriptMan" runat="server" /> 
        <asp:UpdatePanel ID="uxAdditionalChildPanel" UpdateMode="Conditional" runat="server"
            <ContentTemplate> 
                <Rad:RadDatePicker ID="uxDate" runat="server" /> 
                <asp:Button ID="uxSubmit" runat='server' UseSubmitBehavior="true" Text="Submit" /> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
        </div> 
        </form> 
    </body> 
    </html> 
     

    That's really all there is to it. Any pointers would be appreciated.

    Thanks,
    WarrenM
  2. Warren
    Warren avatar
    4 posts
    Member since:
    Apr 2009

    Posted 06 Apr 2009 Link to this post

    Converting the UpdatePanel to a RadAjaxPanel seems to have fixed the problem. I'm still curious, though, why the DateTimePicker performs incorrectly in the prior context.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 08 Apr 2009 Link to this post

    Hello Warren,

    I followed your scenario in order to replicate the issue but to no avail. Find attached a small runnable application, which is working as expected. Give it a try and let me know how it goes or if I am leaving something out.

    Regards,
    Pavlina
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. Monika
    Monika avatar
    1 posts
    Member since:
    Aug 2015

    Posted 20 Aug 2015 in reply to Pavlina Link to this post

    Hi Pavlina,

     

    Unable to download your zip[ped solution can u please paste the code here.

    As i am having the same problem.

  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 25 Aug 2015 Link to this post

    Hello Monika,

    The code I used in the attached project is the same that Warren provided in the first post and as I pointed out it is working without problems. Therefore in order to assist you further with your issue please specify which is the version of Telerik UI controls you are using and the browser in which you run the page. Did you manage to replicate the problem with the latest version of the controls?

    Regards,
    Pavlina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017