Print Page | Close Window

reload events...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=5059
Printed Date: 03 July 2024 at 5:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: reload events...
Posted By: flauzer
Subject: reload events...
Date 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.
 
 
 



Replies:
Posted By: sserge
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net