Ajax Control Toolkit CalendarExtender not closing when form body clicked.
Posted
by TampaRich
on Stack Overflow
See other posts from Stack Overflow
or by TampaRich
Published on 2010-01-28T14:06:38Z
Indexed on
2010/03/28
9:03 UTC
Read the original article
Hit count: 284
I am trying to simply have the calendar close when a user clicks anywhere on the page. I have downloaded the most recent version of the toolkit and I can not get this functionality to work. I am not sure if I am missing a property but the functionality works as expected on the asp.net sample toolkit page.
Here is the code:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:TextBox ID="txtTest" runat="server" /><img runat="server" alt="Calendar" id="imgCalFrom" align="absmiddle" border="0" height="16" src="/global/images/glo_btn_cal.gif" width="21"/>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtTest" PopupButtonID="imgCalFrom">
</asp:CalendarExtender>
© Stack Overflow or respective owner