two ??- Change dates/refresh |
Post Reply |
Author | ||
SteveB
Newbie Joined: 07 January 2007 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 07 January 2007 at 1:05pm |
|
I want to be able to have my users click a toolbar button to move to the previous or next day.
Is there an easy way to do this?
Also, as the DB data is cached at the time of load, how can I 'refresh' since this will be used in a multi-user environment?
|
||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|
Hi,
1) There are no an easy way to scroll days in one method call. However, existing method also looks to be not really complex. Just read visible dates, scroll this range, and set visible dates back. See CalendarDayView members. 2) Use CalendarDataProvider.ClearCache and call .Populate to update the data. -- WBR, Serge |
||
SteveB
Newbie Joined: 07 January 2007 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
|
1) as a work around, I keep the currently displayed date in a global variable and then just use CalendarControl.ActiveView.ShowDay to display that date. Is there a better way, as you mention to 'read visible dates'? On a similar note, is there a way to read just the one days events? I am designing this for use in a physician's office with four practitioners. I've done some testing loading 10,000+ appointments without too much performance issues but can see a bit of a hesitation when using the above method to changes dates. 2) Works exactly as I had hoped!!!! THanks!!!
|
||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|
See properties: CalendarControl.ActiveView.DaysCount CalendarControl.ActiveView.Days(nDayIndex).Date - is day date Use nDayIndex = 0 or DaysCount -1 to scroll backward and forward.
Use method DataProvider.RetrieveDayEvents -- 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 |