Print Page | Close Window

ProgressBar

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=3966
Printed Date: 21 November 2024 at 10:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ProgressBar
Posted By: flauzer
Subject: ProgressBar
Date Posted: 10 April 2006 at 5:32am

I'm using the calendarControl with Custom Provider on SQL server and the DatePicker with AttachToCalendar... 
 
When the user visualizes a form, the provider needs to go n times on SQL server (something more if there is the recurrence), with n that depends on the RowCount number of the DatePicker: I believe RowCount=2 is min, so the provider goes at least 60 (30x2) times on SQL with the event m_pCalendar_DoRetrieveDayEvents and the RetrievePattern....). 
 
My problem is how to show a progress bar between the beginning and the end of this time.  

How to understand the event in which the DataPicker is beginning to load the cache (and therefore to visualize the beginning of the ProgressBar) and when the operation is ended????? 
 
Thanks for any suggestions....

 

 




Replies:
Posted By: sserge
Date Posted: 10 April 2006 at 2:29pm
There are no direct way to determine begin and end amounts of requesting events set.

But: the DatePicker has a property BoldDaysWithEvents, and when it is disabled the control doesn't requests data provider for events on a partucular day. You can set it to False by default.

Then somewhere (on form initialization) set it to True and call DatePicker.RedrawControl. That will start a massive request to a DataProvider.

Initizalize your progress bar just before. The total amount would be a number of Date Picker days displayed.

And you can hide your progress bar by timeout: in 500 ms after the last request to SQL server.

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