![]() |
Flickering won't stop |
Post Reply ![]() |
Author | |
rcarrier ![]() Groupie ![]() ![]() Joined: 10 October 2009 Location: United States Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 20 July 2010 at 5:18pm |
When we retrieve records from the database the control flickers between an arror and hourglass for a second or two as the events are loaded. When we retrieve data from the database and no rows are returned, the control flickers until we make another selection that actually brings back data. Its like the control need data for some reason. How can we make this stop. We are on 13.3 and using a custom datasource . Thanks,
Richard
|
|
r carrier
|
|
![]() |
|
jgordon428 ![]() Groupie ![]() Joined: 11 June 2009 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
Richard, I have noticed the exact same behavior. I couldn't pinpoint the cause, as it appeared to be completely random (when it would flicker, when it wouldn't), but after reading your post, I can verify that it does have to do with if data is returned or not.
The issue is that it calls the calendar's DoRetrieveDayEvents event in a weird loop that jumps around and covers multiple years. I put a debug.print in that event when trying to display a single day without any events and pasted a snippet of the results below. Any way to fix this? Have you found a workaround? Exit m_pCalendar_DoRetrieveDayEvents: 1/5/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/6/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/6/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/7/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/7/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/8/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/8/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/9/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/9/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/10/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/10/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/11/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/11/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/12/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/12/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/13/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/13/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/14/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/14/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/15/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/15/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/16/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/16/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/17/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/17/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/18/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/18/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/19/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/19/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/20/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/20/2011 Enter m_pCalendar_DoRetrieveDayEvents: 8/2/2010 Exit m_pCalendar_DoRetrieveDayEvents: 8/2/2010 Enter m_pCalendar_DoRetrieveDayEvents: 8/1/2010 Exit m_pCalendar_DoRetrieveDayEvents: 8/1/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/31/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/31/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/30/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/30/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/29/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/29/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/28/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/28/2010 Enter m_pCalendar_DoRetrieveDayEvents: 1/21/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/21/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/22/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/22/2011 Enter m_pCalendar_DoRetrieveDayEvents: 7/27/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/27/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/26/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/26/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/25/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/25/2010 Enter m_pCalendar_DoRetrieveDayEvents: 1/23/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/23/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/24/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/24/2011 Enter m_pCalendar_DoRetrieveDayEvents: 7/24/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/24/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/23/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/23/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/22/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/22/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/21/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/21/2010 Enter m_pCalendar_DoRetrieveDayEvents: 1/25/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/25/2011 Enter m_pCalendar_DoRetrieveDayEvents: 1/26/2011 Exit m_pCalendar_DoRetrieveDayEvents: 1/26/2011 Enter m_pCalendar_DoRetrieveDayEvents: 7/20/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/20/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/19/2010 Exit m_pCalendar_DoRetrieveDayEvents: 7/19/2010 Enter m_pCalendar_DoRetrieveDayEvents: 7/18/2010 |
|
![]() |
|
jgordon428 ![]() Groupie ![]() Joined: 11 June 2009 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
racarrier... did you ever get a resolution to this? I opened a ticket with CJ support, so hopefully I'll get a reply soon and can post an update.
|
|
![]() |
|
danielvee ![]() Newbie ![]() Joined: 10 August 2010 Location: United States Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
![]() |
|
rcarrier ![]() Groupie ![]() ![]() Joined: 10 October 2009 Location: United States Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
What we did to fix this is when no rows were returned from the database we created a dummy event and made it invisible. It seemed the calendar needed at least one event. All flickering has stopped.
Hope this helps
|
|
r carrier
|
|
![]() |
|
jgordon428 ![]() Groupie ![]() Joined: 11 June 2009 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the suggestion. We actually experimented with this, but didn't have luck for some reason. I didn't set it as invisible, I set the ScheduleID to something that wouldn't display, so perhaps that was the issue. Did you create this event in DoRetreiveEvents? I assume you just set pevent.EventVisible = False?
|
|
![]() |
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 |