DoRetrieveDayEvents with Multiple Resources |
Post Reply |
Author | |
phainge
Groupie Joined: 03 July 2009 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 26 August 2009 at 5:30am |
Hi,
I'm using a custom data provider with multiple resources. I'm finding that the DoRetrieveDayEvents event is only being fired for the first resource. Here's what I'm doing:
I add the first resource and call the calendar control Populate method, which fires the DoRetrieveDayEvents event which loads the events for that resource. But when I add another resource and call the calendar control Populate method again, the DoRetrieveDayEvents is not being fired. I can force the DoRetrieveDayEvents to fire if I first call the Dataprovider.ClearCache method, but this removes from the calendar all the events for the other resource. Does this mean that whenever I add a new resource I have to clear the cache and reload the events for all resources?
Peter
|
|
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1 Visual Basic 6.0 SP4 |
|
johnp
Groupie Joined: 21 February 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Phainge,
I am using custom data provider with multiple resources as well. I add all of the resources before populating the calendar and it all seems to work okay.
|
|
phainge
Groupie Joined: 03 July 2009 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Hi johnp,
Thanks, but my problem is that I can't add all of the resources up front before populating the calendar, as the resources are variable - basically there is a list of optional calendars from which the user can choose which ones they want to see in the calendar control, so I have to add/remove these resouces dynamically as they are selected/de-selected by the user.
Peter
|
|
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1 Visual Basic 6.0 SP4 |
|
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 |