Hi
The calendar pop up in new window has always bothered me. It needs to be in the same window and popup instantly.
So I changed it to use AJAX Toolkit's Calendar Extender. Just sharing this b/c I think it's much better this way, and its extremely easy to change. Hopefully other developers using this open source will find this helpful, or maybe the admins will decide to make this change in a future release.
Here is what you do:
1. Open up _controls\DatePicker.ascx and add the Toolkit Reference:
<%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
2. Next add the control below txtDate:
<
ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDATE" PopupButtonID="imgCalendar" />
3. Last step is to delete (or comment out) the onclick event code from the span that contains calendar image. So get rid of:
onclick="ChangeDate=ChangeDate<%= txtDATE.ClientID.Replace(":", "_") %>;CalendarPopup(document.getElementById('<%= txtDATE.ClientID %>'), event.clientX, event.clientY);"
And thats it! Make sure to do this in all DateTimeXXXPicker controls