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

RadDatePicker: No calendar popup after partial postback in UpdatePanel

4 Answers 105 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 06 Apr 2009, 05:59 PM
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

4 Answers, 1 is accepted

Sort by
0
Warren
Top achievements
Rank 1
answered on 06 Apr 2009, 06:16 PM
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.
0
Pavlina
Telerik team
answered on 08 Apr 2009, 09:54 AM
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.
0
Monika
Top achievements
Rank 1
answered on 21 Aug 2015, 03:30 AM

Hi Pavlina,

 

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

As i am having the same problem.

0
Pavlina
Telerik team
answered on 25 Aug 2015, 04:55 PM
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
Tags
Calendar
Asked by
Warren
Top achievements
Rank 1
Answers by
Warren
Top achievements
Rank 1
Pavlina
Telerik team
Monika
Top achievements
Rank 1
Share this question
or