Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - ProgressBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ProgressBar

 Post Reply Post Reply
Author
Message
flauzer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 December 2003
Location: Italy
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote flauzer Quote  Post ReplyReply Direct Link To This Post Topic: ProgressBar
    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....

 

 

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.