FirstVisibleDay/LastVisibleDay for CalendarControl |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
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. |
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
FirstDate = xtremeCalendar.activeView.Days(0).Date
LastDay = xtremeCalendar.activeView.DaysCount
LastDate = xtremeCalendar.activeView.Days(LastDay-1).Date |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |