Async rendering a JQMRegion

Hello,
I would like to show a runtime created list of JQMLabel in a JQMRegion by clicikng a JQMButton.
Following is the code I'm testing (derived form the same I'm using in a IWCGJQuery application):
The code is executed but the JQMLabel list is not shown.
Is it possible ?
What's wrong with what I am doing ?
Thank you,
Davide
I would like to show a runtime created list of JQMLabel in a JQMRegion by clicikng a JQMButton.
Following is the code I'm testing (derived form the same I'm using in a IWCGJQuery application):
- Code: Select all
if (CGIsCallBackProcessing) then
CGCallBackDisableAjaxResponse;
for I := 0 to MyStringList.Count -1 do begin
MyItem := TMyObject(MyStringList.Objects[I]);
LblD := TIWCGJQMLabel.Create(Self);
LblD.Parent := MyRegion;
LblD.TabOrder := i;
LblD.Text := MyItem.Text;
LblD.Visible := true;
end;
if (WebApplication.CallBackProcessing) then
CGCallBackEnableAjaxResponse;
RenderRegionAsync(MyRegion);
The code is executed but the JQMLabel list is not shown.
Is it possible ?
What's wrong with what I am doing ?
Thank you,
Davide