Hi, I am using a WebDatePicker in conjunction with the WebMonthCalendar control (see https://es.infragistics.com/samples/aspnet/date-picker/overview for example).
The sample there works great but I added the SelectionType="Multi" property to the WebMonthCalendar so I can select multiple dates. The problem is though that as soon as I click on one of the dates it hides the calendar drop down. How do I get the WebDatePicker to not close the drop down when the first date is selected?
Thanks
Here is my code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="Infragistics35.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.EditorControls" TagPrefix="ig" %><!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></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> This one works fine: <ig:WebDatePicker ID="WebDatePicker1" runat="server" StyleSetName="Default" DropDownCalendarID="WebMonthCalendar1"> </ig:WebDatePicker> <ig:WebMonthCalendar ID="WebMonthCalendar1" runat="server" StyleSetName="Default" EnableWeekNumbers="true" ChangeMonthToDateClicked="true" EnableMonthDropDown="True" EnableYearDropDown="True"> </ig:WebMonthCalendar> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> But not when you add selection type = Multi <ig:WebDatePicker ID="WebDatePicker2" runat="server" StyleSetName="Default" DropDownCalendarID="WebMonthCalendar2" > </ig:WebDatePicker> <ig:WebMonthCalendar ID="WebMonthCalendar2" runat="server" StyleSetName="Default" SelectionType="Multi" EnableWeekNumbers="true" ChangeMonthToDateClicked="true" EnableMonthDropDown="True" EnableYearDropDown="True"> </ig:WebMonthCalendar> </div> </form></body></html>
Hi Bart,
Would you tell us what exactly is your scenario, because even if you find a way by which to keep the webmonthcalendar open, the dates that you select won’t be populated inside the webdatepicker, because it accepts only one date. When you would like the webmonthcalendar to close? Which of all the selected dates you would like to be shown in the datetimepicker?
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks Lyuba, I'm replacing a custom datepicker control that allows you to pick multiple dates from the calendar and then it puts all the selected dates in a comma separated list in the text box and displays just the last selected date. The downside is once you have closed the calendar you don't know that multiple dates were selected. So I think I will be going with just the WebMonthCalendar on either the page or in a popup.