Calendar Control doesnt clock onclick when in an update panel...

Last post 09-06-2007 11:01 AM by bbaxter. 4 replies.

Sort Posts:

  • Calendar Control doesnt clock onclick when in an update panel...

    08-31-2007, 4:11 PM
    • Member
      124 point Member
    • bbaxter
    • Member since 02-15-2007, 6:49 PM
    • ATX
    • Posts 424

    Has anyone else noticed that when a calendar is attached to a textbox with the Popup Ajax Control, the calendar won't close automatically if all of this is in an updatepanel?

    strange, might be a bug. 

    try it

    <update panel>

    <textbox>

    <calendar>

    <ajax popup extender> 

    </updatepanel> 

     

    keepin' it real in the LODO
  • Re: Calendar Control doesnt clock onclick when in an update panel...

    09-04-2007, 5:10 AM

    Hi Bbaxter,

     Would you please give us your simple sample which contains your issue?  Thanks!

    Best regards,

    Jonathan 

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Calendar Control doesnt clock onclick when in an update panel...

    09-04-2007, 5:55 PM
    • Member
      124 point Member
    • bbaxter
    • Member since 02-15-2007, 6:49 PM
    • ATX
    • Posts 424

    certainly:

    <asp:ScriptManager ID="ScriptManager1" runat="server" />

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>

    <asp:TextBox ID="tbDateFrom" Width="100" runat="server"></asp:TextBox><br />

    </asp:Panel>

     

    <ajaxToolkit:CalendarExtender runat="server"

    TargetControlID="tbDateFrom"

    CssClass=""

    Format="MM/dd/yyyy" />

    </ContentTemplate>

    </asp:UpdatePanel>

     

    etc.......

    keepin' it real in the LODO
  • Re: Calendar Control doesnt clock onclick when in an update panel...

    09-04-2007, 10:44 PM
    Answer

    Hi Bbaxter,

     Based on my test, calendar works fine when it is inside an UpdatePanel. The Calendar won't close automaticlly if it is not fired by PopupButtonID.It is not a UpdatePanel issue.  Here is the sample that works fine inside the UpdatePanel.

    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"
                        Format="yyyy-MM-dd" PopupButtonID="Button1">
                    </ajaxToolkit:CalendarExtender>
                    <asp:Button ID="Button1" runat="server" Text="Calendar" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </form>
    </body>
    </html>

     I hope this help.

    Best regards,

    Jonathan 

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Calendar Control doesnt clock onclick when in an update panel...

    09-06-2007, 11:01 AM
    • Member
      124 point Member
    • bbaxter
    • Member since 02-15-2007, 6:49 PM
    • ATX
    • Posts 424

     

    that did it, thanks!
    keepin' it real in the LODO
Page 1 of 1 (5 items)