reload events... |
Post Reply |
Author | ||
flauzer
Senior Member Joined: 30 December 2003 Location: Italy Status: Offline Points: 108 |
Post Options
Thanks(0)
Posted: 15 September 2006 at 9:23am |
|
sorry for a stupid question....
How to force CalendarControl to load all the events as occurred in Form_Load ?
I mean load events = call all the event in the provider...( m_pCalendar_DoRetrieveDayEvents ...)
I've some trouble with Dataprovider.CacheMode ...
Thanks.
|
||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|
You can call data provider's Close and then Open -- that will reload its events. Also you can firstly delete all events using .RemoveAllEvents, then read all events from the database and call DataProvider.Add for each one. Also set some flag during this operation to not proceed DoCreate(Update)Event, and so on. Also set cache mode to "On", "Repeat".
What exactly? Couple more suggestions: - you can use DataProvider.ClearCache(); - or you can use Set DataProvider.CacheMode = xtpCalendarDPCacheModeOff; but the last one сould slow down performance. It could be useful for debug purposes, or when using fast (memory based) accessed data. -- 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 |