Print Page | Close Window

FirstVisibleDay/LastVisibleDay for CalendarControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=9353
Printed Date: 07 October 2024 at 11:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FirstVisibleDay/LastVisibleDay for CalendarControl
Posted By: jpbro
Subject: FirstVisibleDay/LastVisibleDay for CalendarControl
Date Posted: 18 January 2008 at 6:34pm
Hi,

I would like to know if there is an equivalent to the DatePicker FirstVisibleDay and LastVisibleDay properties for the CalendarControl?

The reason I ask is that I don't want the default behaviour of the DatePicker control when attached to a calendar, as the user can select ranges and then it switches the ViewType for the calendar. I would like to allow the user to be able to select only one date in the DatePicker, and then if the calendar is in MonthView, then the DatePicker highlights the month range that is visible on the CalendarControl. If the calendar is in Week view, then the DatePicker highlights the visible week. If I could access the FirstVisibleDay and LastVisibleDay for a CalendarControl then I could enforce my desired behaviour manually.

Thanks.



Replies:
Posted By: wlcabral
Date Posted: 19 January 2008 at 12:39pm
FirstDate = xtremeCalendar.activeView.Days(0).Date
 
LastDay = xtremeCalendar.activeView.DaysCount
 
LastDate = xtremeCalendar.activeView.Days(LastDay-1).Date



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net