Welcome Guest Search | Active Topics | Sign In | Register

Using progress bar for my application!! Options
kshankar88
Posted: Tuesday, May 19, 2009 5:31:45 AM
Rank: Newbie
Groups: Member

Joined: 5/19/2009
Posts: 1
I'm using server Side task1 progress bar in my application............. I'm new to this:: and I dont know how to run the progress bar and how to link it with my application.

I have 3 things where i want the progress bar to show the progress::
(i) - when i fill the grid with a bunch of data...
(ii) - I've a button 'validate' which inside the event handler validates all the records entered in the grid by checking with the database
(iii) - I've a submit button whose event handler submits all the validated records into the database....

I want the progress bar to run in each of the above cases.... How shod i be manipulating over the percentage value to be shown in the progress bar???? How do i first link the bar's progress with my application?? Can u help me as i'm new to this
Code: C#
eo_support
Posted: Tuesday, May 19, 2009 7:28:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

It is really completely up to you. The ProgressBar provides you several ways to set the progress:

1. On the server side with Value property;
2. On the client side with setValue method;
3. UpdateProgress when you are inside RunTask event;

Server side task 1 sample uses UpdateProgress (method #3) inside RunTask, but you can use any of them or all of them together. For instance, when you have filled the Grid, you can set the ProgressBar's Value to 33 (out of 100), after you have validated, you set to 66, and once you are done you set it to 100. All done with method #1. You can also use method #1 for step 1 and step 2, but method 3 for step 3. It's just plain coding.

I am not sure what you mean by "how do I first link the bar's progress with my application". I am guessing you are asking how to set the progress bar's initial value. If that is the question, then you just set the progress bar's Value property.

Thanks


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.