I'm working through an exercise from your Ajax Courseware. When I place a RadCalendar inside an Ajax Panel, everything works fine. The Calendar updates as expected. When I go through the RadAjaxManager example, the calendar does not update when I click the next/prev ("<" ">") buttons, or the fast forward/back (">>" "<<") buttons.
I'm running VS2008, .Net 3.5SP1, Win 7 64 bit, RadControls Q3 2009 NET35
Here's my markup and code-behind.
I'm running VS2008, .Net 3.5SP1, Win 7 64 bit, RadControls Q3 2009 NET35
Some more info:
1) I get the same behavior if I run your sample without any changes ...\VS Projects\VS Projects\Ajax\CS\GettingStarted
2) If I disable Ajax in the AjaxManager smart tag, the calendar updates properly
3) If I click on the Month-Year heading of the calendar and select the new month/year that way, the calendar still does not update.
4) With Ajax enabled, the calendar is posting back to the server when I attempt to change the month with the < > buttons (breakpoint on Page_Load gets hit, Loading Panel on the label flashes very briefly).
Here's my markup and code-behind.
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> |
| <!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></title> |
| <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadCalendar1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Label1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <div> |
| <telerik:RadCalendar ID="RadCalendar1" Runat="server" AutoPostBack="True" |
| EnableMultiSelect="False" SelectedDate="" ViewSelectorText="x"> |
| </telerik:RadCalendar> |
| <br /> |
| <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using System.Data; |
| using System.Configuration; |
| using System.Web.Security; |
| using System.Web.UI.WebControls.WebParts; |
| using System.Web.UI.HtmlControls; |
| using Telerik.Web.UI; |
| public partial class Default : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void RadCalendar1_SelectionChanged(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e) |
| { |
| Label1.Text = RadCalendar1.SelectedDate.ToString(); |
| } |
| } |