DoRetrieveDayEvents getting called Twice? |
Post Reply |
Author | |
prashant
Senior Member Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Posted: 25 April 2008 at 3:15am |
Hi,
I am having my own "2 Day" calendar mode, for displaying this mode I need to do following steps Step 1) GetCalendarCtrl().SwitchActiveView(xtpCalendarDayView); Step 2) CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, GetCalendarCtrl().GetDayView()); pDayView->ShowDays(oleStartDay, oleEndDay); Because of this "DoRetrieveDayEvents getting called Twice" which is unnecessary. What is the proper solution for this problem? You are providing enum XTPCalendarViewType {Thanks in advance. |
|
prashant
Senior Member Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
|
Hi,
Is there any solution for this? My call is going into recursion when I call SwitchActiveView and ShowDays. Both functions are calling DoRetrieveDayEvents and I am already ready with the data in first call itself (SwitchActiveView). |
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
|
I have the same problem but this problem occurs only if I disable caching:
pData->SetCacheMode(xtpCalendarDPCacheModeOff); But I think it shall also work without caching! So it looks like an error of XTP 12.0.1? |
|
Mattie161
Newbie Joined: 23 February 2009 Location: United Kingdom Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I also have this problem with DoRetrieveDayEvents being triggered twice for all days when cache mode is off and only upon loading up the form with the calendar on. Was there no solution?
|
|
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 |