Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - reload events...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

reload events...

 Post Reply Post Reply
Author
Message
flauzer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 December 2003
Location: Italy
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote flauzer Quote  Post ReplyReply Direct Link To This Post Topic: reload events...
    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.
 
 
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2006 at 5:05pm
Originally posted by flauzer flauzer wrote:

 
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 ...)


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".


Originally posted by flauzer flauzer wrote:

I've some trouble with Dataprovider.CacheMode ...

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.