I am trying to use the RadProgressArea to show a progress bar for processing 100,000+ records.
It worked fine in my sample application but when deploying it failed to show. I narrowed down the problem to tasks that occur prior to this progress bar loop that take upwards of 12 seconds. Then after some testing I found that if I manually add a .Sleep() to the thread for anything more than 5 seconds (to simulate the delay) it would cause the RadProgressArea to not show at all. Basically if I take the Telerik example and simply add a 6s delay in front of it then it never works.
Am I missing something obvious here? Thank you in advance for my sanity.
System.Threading.Thread.Sleep(5000)
' ANYTHING 5s OR HIGHER MAKES PROGRESS BAR NEVER SHOW
' initialize variables
Dim
progress
As
RadProgressContext = RadProgressContext.Current
' loop through records
For
i
As
Integer
= 0
To
TotalRecords - 1
' update progress bar
UpdateProgressBar(progress, dtStarted, TotalRecords, i)
' SOME WORK STUFF GOES HERE
Next