How can I show a progressbar from 1..100%

Hi,
I want to implement a progressbar.
I tested following:
************************
Comonents on Form:
- IWCGJQButton1: TIWCGJQButton;
- CGJQContainer: TIWCGJQRegion;
Progressbar on CGJQContainer:
IWCGJQProgressBar: TIWCGJQProgressBar;
************************
procedure TFORM_Login.IWCGJQButton1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
i : integer;
begin
for i := 1 to 100 do
begin
CGCallBackDisableAjaxResponse;
IWCGJQProgressBar.ResetJSonProps;
IWCGJQProgressBar.JQProgressBarOptions.Value:= i;
IWCGJQProgressBar.JQProgressBarOptions.CaptionType:= pbctPercentage;
IWCGJQProgressBar.JQProgressBarOptions.Animation.Enable:= False;
CGCallBackEnableAjaxResponse;
RenderRegionAsync(CGJQContainer, rramLazyLoadMethod, True);
Sleep(50);
end;
end;
************************
After 5 seconds the progressbar shows only the last value (100%).
How can I show all values from 1% to 100% ?
Kind regards
I want to implement a progressbar.
I tested following:
************************
Comonents on Form:
- IWCGJQButton1: TIWCGJQButton;
- CGJQContainer: TIWCGJQRegion;
Progressbar on CGJQContainer:
IWCGJQProgressBar: TIWCGJQProgressBar;
************************
procedure TFORM_Login.IWCGJQButton1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
i : integer;
begin
for i := 1 to 100 do
begin
CGCallBackDisableAjaxResponse;
IWCGJQProgressBar.ResetJSonProps;
IWCGJQProgressBar.JQProgressBarOptions.Value:= i;
IWCGJQProgressBar.JQProgressBarOptions.CaptionType:= pbctPercentage;
IWCGJQProgressBar.JQProgressBarOptions.Animation.Enable:= False;
CGCallBackEnableAjaxResponse;
RenderRegionAsync(CGJQContainer, rramLazyLoadMethod, True);
Sleep(50);
end;
end;
************************
After 5 seconds the progressbar shows only the last value (100%).
How can I show all values from 1% to 100% ?
Kind regards