Set start and end date in month view? |
Post Reply |
Author | |
Nataraj
Newbie Joined: 02 September 2005 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 19 September 2005 at 1:09am |
Hi, How do i set the start and end date in the month view? Currently on load it shows the current month, however i can use the scrollbar to scroll to different date of previous / next year. How do i control the scrolling i.e. what property / method can i use to show data for a specific date range. In day view i can use ShowDays method to specify a start and end date. Similarly how can i achieve the same result in month view? |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi Nataraj,
You can use following methods:
-- WBR, Serge |
|
Nataraj
Newbie Joined: 02 September 2005 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Hi, Iam using the control in IE, there is a ShowDay Method and WeeksCount property of the monthview. Using this the initial date is set to the date specified, but i dont want the end user to scroll to other dates. I want the view to be restricted only to a specific date range. In this case the scroll bar should not be present / should be disabled since iam viewing only a specific date range. Can this be achieved? |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
You can disable scrollbars for views with .EnableVScroll and .EnableHScroll methods. -- WBR, Serge |
|
Nataraj
Newbie Joined: 02 September 2005 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Hi, I was not able to find these methods either in the help or in the object browser of vb. Iam using the evaluation version of Xtreme Suite Professional 9.7.0.0. Are these methods present in this version or some other version? Which object do these methods belong to? I tried DayView,WeekView,MonthView and ActiveView objects, none of these have these methods. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hm, as far as I can see :) CalendarDayView object contains these methods even in 9.7.
But you can wait couple days for 9.8 release, which has the newest sources. |
|
WaaZ
Senior Member Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
Post Options
Thanks(0)
|
Hi, where can I get the date of the first day being currently displayed? I have seen that you are using a SetbeginDate above. Where can I get this method? 1) Or how can I get the start and end date of the actual view of the calendar? 2) What handler is triggered when I change the current date range view? thnks WaaZ |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
CalendarView is a collection of CalendarViewDay objects.
CalendarView[0].Date : first day date; CalendarView[CalendarView.DaysCount - 1].Date : last day date; Just look into hierarchy of Calendar objects. -- WBR, Serge |
|
WaaZ
Senior Member Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
Post Options
Thanks(0)
|
thnks. It works fine. for more info: It is in the CalendarControl.ActiveView. The ActiveView object is a collection of CalenderViews. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
ActiveView is not a collection of views, it is a reference pointing into the currently used view, which user see at th screen.
btw, answer to your second question: 2) There is a ViewChanged event. -- WBR, Serge |
|
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 |