Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
How to display multiple months in a single calendar?
posted
Normal 0 false false false EN-US X-NONE X-NONE

I'm new to the WebDatePicker and the WebMonthCalendar controls. As I understand it, if I want the WebDatePicker control to display a calendar with clickable days so the user can select a date I have to link it to a WebMonthCalendar control via the DropDownCalendarID property. So far, so good. The combination looks like this:

<td>
    <ig:WebDatePicker ID="WebDatePicker1" runat="server"
        EditMode="CalendarOnly"
        DropDownCalendarID="WebMonthCalendar1">
    </ig:WebDatePicker>
    <ig:WebMonthCalendar ID="WebMonthCalendar1" runat="server"
        EnableMonthDropDown="False"
        AutoPostBackFlagsSelectionChanged="On"
        OnSelectedDateChanged="WebDatePicker1_TextChanged">
    </ig:WebMonthCalendar>
</td>

I want the calendar to display two months instead of one as the MaxDate is always 30 days greater than today and therefore could be part of the following month. IOW, I want to display the current month plus the following month and nothing else. Ideally I would also like to suppress the ability to navigate to any other months. Can this be done? Here's approximately what I want it to look like: